You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: install-python.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ The output should be one of the following (*version numbers will vary*). **C:\us
35
35
36
36
```
37
37
C:\users\username\> python -V
38
-
Python 3.10.1
38
+
Python 3.11.0
39
39
```
40
40
41
41
If you see this and the reported version number is sufficiently high (often 3.9 or higher),**you are good to go**.
@@ -118,7 +118,7 @@ The Windows Store version of Python is a good option. It's the easiest way to ge
118
118
119
119
1. Open the Microsoft Store on Windows
120
120
2. Search for Python
121
-
3. Find the latest version of Python from Microsoft (currently lists 3.7, 3.8, 3.9, and[**3.10**](https://www.microsoft.com/store/productId/9PJPW5LDXLZ5))
121
+
3. Find the latest version of Python from Microsoft (currently lists 3.7, 3.8, 3.9,3.10,and[**3.11**](https://apps.microsoft.com/store/detail/python-311/9NRWMJP3717K?hl=en-us&gl=us))
122
122
4. Install from the Microsoft Store
123
123
5. Close all terminal and command prompt windows
124
124
6. Run`python -V` in a new terminal window to verify you have Python now working
@@ -131,7 +131,7 @@ The Windows Store version of Python is a good option. It's the easiest way to ge
131
131
**Pros**
132
132
133
133
* Will keep Python up-to-date on your system as long as you periodically run the upgrade command
134
-
* Will update across versions (e.g. 3.9 -> 3.10)
134
+
* Will update across versions (e.g. 3.10 -> 3.11)
135
135
* Can inform you of pending upgrade if upgrade command is run
136
136
137
137
**Cons**
@@ -163,7 +163,7 @@ The Windows Store version of Python is a good option. It's the easiest way to ge
163
163
164
164
* Generally uses[conda environments](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html) rather than[Python's virtual environments](https://www.geeksforgeeks.org/python-virtual-environment/) - this can lead to a mismatch in instructions when Anaconda is not the primary tool used.
165
165
* Packages available here often lag behind in release schedule from PyPI / pip
166
-
* Often one whole version behind on Python (e.g. 3.9 rather than 3.10)
166
+
* Often one whole version behind on Python (e.g. 3.10 rather than 3.11)
167
167
168
168
**Install steps - Anaconda distribution on Windows**
169
169
@@ -194,10 +194,10 @@ The output should be one of the following (*version numbers will vary*). Do not
194
194
195
195
```
196
196
$ python3 -V
197
-
Python 3.10.1
197
+
Python 3.11.0
198
198
```
199
199
200
-
If you see this and the reported version number is sufficiently high (often 3.6 or higher),**you are good to go**.
200
+
If you see this and the reported version number is sufficiently high (often 3.9 or higher),**you are good to go**.
201
201
202
202
####2.7? Uh oh, your Python is badly outdated!
203
203
@@ -234,7 +234,7 @@ Looks like you do not have Python 3 at all. **You will need to continue below to
234
234
**Pros**
235
235
236
236
* Will keep Python up-to-date on your system as long as you periodically run the upgrade command
237
-
* Will update across versions (e.g. 3.9 -> 3.10)
237
+
* Will update across versions (e.g. 3.10 -> 3.11)
238
238
* Can inform you of pending upgrade if upgrade command is run
239
239
240
240
**Cons**
@@ -291,7 +291,7 @@ The Python official installer can be found on **[python.org](http://python.org)*
291
291
292
292
* Generally uses[conda environments](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html) rather than[Python's virtual environments](https://www.geeksforgeeks.org/python-virtual-environment/) - this can lead to a mismatch in instructions when Anaconda is not the primary tool used.
293
293
* Packages available here often lag behind in release schedule from PyPI / pip
294
-
* Often one whole version behind on Python (e.g. 3.9 rather than 3.10)
294
+
* Often one whole version behind on Python (e.g. 3.10 rather than 3.11)
295
295
296
296
**Install steps - Anaconda distribution on Windows**
297
297
@@ -324,10 +324,10 @@ The output should be one of the following (*version numbers will vary*). Don't t
324
324
325
325
```
326
326
$ python3 -V
327
-
Python 3.10.1
327
+
Python 3.11.0
328
328
```
329
329
330
-
If you see this and the reported version number is sufficiently high (often 3.6 or higher),**you are good to go**.
330
+
If you see this and the reported version number is sufficiently high (often 3.9 or higher),**you are good to go**.
* Will keep Python up-to-date on your system as long as you periodically run the upgrade command
369
-
* Will update across versions (e.g. 3.9 -> 3.10)
369
+
* Will update across versions (e.g. 3.10 -> 3.11)
370
370
* Can inform you of pending upgrade if upgrade command is run
371
371
372
372
**Cons**
@@ -432,14 +432,14 @@ While we would not generally recommend building Python 3 from source, if you nee
432
432
3. Install the build tools:`sudo apt-get install -y build-essential checkinstall`
433
433
4. Add additional libraries needed by Python to build:`apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libffi-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev`
434
434
5. Change into the src directory:`cd /usr/src`
435
-
6. Get the latest source from[python.org/downloads/source](https://www.python.org/downloads/source/) and wget it locally, e.g.:`sudo wget https://www.python.org/ftp/python/3.10.1/Python-3.10.1.tgz`
436
-
7. Decompress it (varies by version):`sudo tar xzf Python-3.10.1.tgz`
437
-
8. Change into the created directory (varies by version):`cd Python-3.10.1`
435
+
6. Get the latest source from[python.org/downloads/source](https://www.python.org/downloads/source/) and wget it locally, e.g.:`sudo wget https://www.python.org/ftp/python/3.11.0/Python-3.11.0.tgz`
436
+
7. Decompress it (varies by version):`sudo tar xzf Python-3.11.0.tgz`
437
+
8. Change into the created directory (varies by version):`cd Python-3.11.0`
438
438
9. Prepare it for compilation:`sudo ./configure --enable-optimizations`
439
439
10. Compile it without modifying system Python:`sudo make altinstall`
440
-
11. Verify this version was built (varies by version):`python3.10 --version`
13. Consider creating an[alias](https://www.howtogeek.com/73768/how-to-use-aliases-to-customize-ubuntu-commands/) of`python3.10` to`python` in your shell profile.
440
+
11. Verify this version was built (varies by version):`python3.11 --version`
13. Consider creating an[alias](https://www.howtogeek.com/73768/how-to-use-aliases-to-customize-ubuntu-commands/) of`python3.11` to`python` in your shell profile.
443
443
444
444
There is a[nice write up of this procedure over here](https://towardsdatascience.com/building-python-from-source-on-ubuntu-20-04-2ed29eec152b).