Skip to content

Commit 9b3f1f1

Browse files
committed
Update readme.md with new versions of python, pandas and wrapt
1 parent 7201bf8 commit 9b3f1f1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Algorithm.Python/readme.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,43 +29,43 @@ In addition, you can use [Skylight](https://www.quantconnect.com/skylight) to au
2929
Before setting up python support, follow the [installation instructions](https://github.com/QuantConnect/Lean#installation-instructions) to get LEAN running C# algorithms on your machine.
3030

3131

32-
## Installing Python 3.8:
32+
## Installing Python 3.11:
3333

3434
Next we must prepare a Python installation for Lean to use. Follow the instructions for your OS.
3535

3636
<br />
3737

3838
### [Windows](https://github.com/QuantConnect/Lean#windows)
3939

40-
1. Use the Windows x86-64 MSI **Python 3.8.13** installer from [python.org](https://www.python.org/downloads/release/python-3813/) or [Anaconda](https://repo.anaconda.com/archive/Anaconda3-5.2.0-Windows-x86_64.exe) for Windows installer. "Anaconda 5.2" installs 3.5.2 by default, after installation of Anaconda you will need to upgrade python to make it work as expected: `conda install -y python=3.8.13`
40+
1. Use the Windows x86-64 MSI **Python 3.11.11** installer from [python.org](https://www.python.org/downloads/release/python-31111/) or [Anaconda](https://repo.anaconda.com/archive/Anaconda3-5.2.0-Windows-x86_64.exe) for Windows installer. "Anaconda 5.2" installs 3.5.2 by default, after installation of Anaconda you will need to upgrade python to make it work as expected: `conda install -y python=3.11.11`
4141
2. When asked to select the features to be installed, make sure you select "Add python.exe to Path"
42-
3. Create `PYTHONNET_PYDLL` environment variable to the location of your python dll in your installation (e.g. `C:\Dev\Python38\python38.dll` or `C:\Anaconda3\python38.dll`):
42+
3. Create `PYTHONNET_PYDLL` environment variable to the location of your python dll in your installation (e.g. `C:\Dev\Python311\python311.dll` or `C:\Anaconda3\python311.dll`):
4343
- Right mouse button on My Computer. Click Properties.
4444
- Click Advanced System Settings -> Environment Variables -> System Variables
4545
- Click **New**.
4646
- Name: `PYTHONNET_PYDLL`
4747
- Value: `{python dll location}`
48-
4. Install [pandas=1.4.3](https://pandas.pydata.org/) and its [dependencies](https://pandas.pydata.org/pandas-docs/stable/install.html#dependencies).
49-
5. Install [wrapt=1.14.1](https://pypi.org/project/wrapt/) module.
48+
4. Install [pandas=2.1.4](https://pandas.pydata.org/) and its [dependencies](https://pandas.pydata.org/pandas-docs/stable/install.html#dependencies).
49+
5. Install [wrapt=1.16.0](https://pypi.org/project/wrapt/) module.
5050
6. Reboot computer to ensure changes are propagated.
5151

5252
<br />
5353

5454
### [macOS](https://github.com/QuantConnect/Lean#macos)
5555

5656
1. Use the macOS x86-64 package installer from [Anaconda](https://repo.anaconda.com/archive/Anaconda3-5.2.0-MacOSX-x86_64.pkg) and follow "[Installing on macOS](https://docs.anaconda.com/anaconda/install/mac-os)" instructions from Anaconda documentation page.
57-
2. Set `PYTHONNET_PYDLL` environment variable to the location of your python dll in your installation directory (e.g. `/Users/{your_user_name}/anaconda3/lib/libpython3.8.dylib`):
57+
2. Set `PYTHONNET_PYDLL` environment variable to the location of your python dll in your installation directory (e.g. `/Users/{your_user_name}/anaconda3/lib/libpython3.11.dylib`):
5858
- Open `~/.bash-profile` with a text editor of your choice.
5959
- Add a new line to the file containing
6060
```
61-
export PYTHONNET_PYDLL="/{your}/{path}/{here}/libpython3.8.dylib"
61+
export PYTHONNET_PYDLL="/{your}/{path}/{here}/libpython3.11.dylib"
6262
```
6363
- Save your changes, and either restart your terminal *or* execute
6464
```
6565
source ~/.bash-profile
6666
```
67-
2. Install [pandas=1.4.3](https://pandas.pydata.org/) and its [dependencies](https://pandas.pydata.org/pandas-docs/stable/install.html#dependencies).
68-
3. Install [wrapt=1.14.1](https://pypi.org/project/wrapt/) module.
67+
2. Install [pandas=2.1.4](https://pandas.pydata.org/) and its [dependencies](https://pandas.pydata.org/pandas-docs/stable/install.html#dependencies).
68+
3. Install [wrapt=1.16.0](https://pypi.org/project/wrapt/) module.
6969

7070
<br />
7171

@@ -81,13 +81,13 @@ conda update -y python conda pip
8181
```
8282
2. Create a new Python environment with the needed dependencies
8383
```
84-
conda create -n qc_lean python=3.8.13 pandas=1.4.3 wrapt=1.14.1
84+
conda create -n qc_lean python=3.11.11 pandas=2.1.4 wrapt=1.16.0
8585
```
86-
3. Set `PYTHONNET_PYDLL` environment variable to location of your python dll in your installation directory (e.g. `/home/{your_user_name}/miniconda3/envs/qc_lean/lib/libpython3.8.so`):
86+
3. Set `PYTHONNET_PYDLL` environment variable to location of your python dll in your installation directory (e.g. `/home/{your_user_name}/miniconda3/envs/qc_lean/lib/libpython3.11.so`):
8787
- Open `/etc/environment` with a text editor of your choice.
8888
- Add a new line to the file containing
8989
```
90-
PYTHONNET_PYDLL="/home/{your_user_name}/miniconda3/envs/qc_lean/lib/libpython3.8.so"
90+
PYTHONNET_PYDLL="/home/{your_user_name}/miniconda3/envs/qc_lean/lib/libpython3.11.so"
9191
```
9292
- Save your changes, and logout or reboot to reflect these changes
9393

0 commit comments

Comments
 (0)