Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc9907e0

Browse files
authored
Update install instructions for new versions and expectations
1 parentb7b965e commitc9907e0

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

‎install-python.md‎

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<imgsrc="https://training.talkpython.fm/static/img/cms/nopy-final.jpg"style="border-radius:10px;display:block;"class="img img-responsive" />
44

5-
Welcome soon to be Python user! Python is one of the easiest programming languages to learn and grow with. But there are a few bumps right at the beginning.**One of these bumps is to make sure you have Python installed** and that it's a sufficiently new version (generally 3.6+ is solid these days).
5+
Welcome soon to be Python user! Python is one of the easiest programming languages to learn and grow with. But there are a few bumps right at the beginning.**One of these bumps is to make sure you have Python installed** and that it's a sufficiently new version (generally 3.9+ is solid these days).
66

77
Because how you install and verify Python varies by operating system, we've put together this short guide. It's goal is to give you exposure to the various ways on your operating system to**install and maintain Python in a concise and no-nonsense manner**. So with out further ado, let's get you setup!
88

@@ -35,12 +35,12 @@ The output should be one of the following (*version numbers will vary*). **C:\us
3535

3636
```
3737
C:\users\username\> python -V
38-
Python 3.9.2
38+
Python 3.10.1
3939
```
4040

41-
If you see this and the reported version number is sufficently high (often 3.6 or higher),**you are good to go**.
41+
If you see this and the reported version number is sufficently high (often 3.9 or higher),**you are good to go**.
4242

43-
####Uh oh, your Python is badly outdated
43+
####2.7?Uh oh, your Python is badly outdated!
4444

4545
```
4646
C:\users\username\> python -V
@@ -107,7 +107,7 @@ The Windows Store version of Python is a good option. It's the easiest way to ge
107107
**Pros**
108108

109109
* Easiest way to get Python on Windows**without administrator permissions**
110-
* Will keep Python up-to-date automatically within a release version (3.9 updates but not 3.9->3.10)
110+
* Will keep Python up-to-date automatically within a release version (3.10 updates but not 3.10->3.11)
111111
* Maintained by the core developers who work at Microsoft
112112

113113
**Cons**
@@ -118,15 +118,15 @@ The Windows Store version of Python is a good option. It's the easiest way to ge
118118

119119
1. Open the Microsoft Store on Windows
120120
2. Search for Python
121-
3. Find the latest version of Python from Microsoft (currently lists 3.7, 3.8, and[**3.9**](https://www.microsoft.com/en-us/p/python-39/9p7qfqmjrfp7?activetab=pivot:overviewtab))
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))
122122
4. Install from the Microsoft Store
123123
5. Close all terminal and command prompt windows
124124
6. Run`python -V` in a new terminal window to verify you have Python now working
125125

126126

127127
####<<**Chocolatey Package Manager for Windows** >>
128128

129-
Chocolatey is a[package manager](https://en.wikipedia.org/wiki/Package_manager): software tools that automates the process of installing, upgrading, configuring, and removing computer programs for a computer's operating system in a consistent manner. If you're comfortable using package managers, then this is a good option for you because you can continually update and maintain Python on your system.
129+
[Chocolatey](https://chocolatey.org/) is a[package manager](https://en.wikipedia.org/wiki/Package_manager): software tools that automates the process of installing, upgrading, configuring, and removing computer programs for a computer's operating system in a consistent manner. If you're comfortable using package managers, then this is a good option for you because you can continually update and maintain Python on your system.
130130

131131
**Pros**
132132

@@ -146,7 +146,7 @@ Chocolatey is a [package manager](https://en.wikipedia.org/wiki/Package_manager)
146146
2. Open an**[administrator command prompt](https://www.howtogeek.com/194041/how-to-open-the-command-prompt-as-administrator-in-windows-8.1/)**
147147
3. Install the latest Python:`choco install python`
148148
4. Peridocially check for a new release: Open admin command prompt and run`choco upgrade python`
149-
5. Close all terminal and command prompt windows
149+
5. Close all terminal and command prompt windows and reopen one (to refresh the path)
150150
6. Run`python -V` in a new terminal window to verify you have Python now working
151151

152152

@@ -163,7 +163,7 @@ Chocolatey is a [package manager](https://en.wikipedia.org/wiki/Package_manager)
163163

164164
* Generally uses[conda environements](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.
165165
* Packages available here often lag behind in release schedule from PyPI / pip
166-
* Often one whole version behind on Python (e.g. 3.8 rather than 3.9)
166+
* Often one whole version behind on Python (e.g. 3.9 rather than 3.10)
167167

168168
**Install steps - Anaconda distribution on Windows**
169169

@@ -194,12 +194,12 @@ The output should be one of the following (*version numbers will vary*). Do not
194194

195195
```
196196
$ python3 -V
197-
Python 3.9.2
197+
Python 3.10.1
198198
```
199199

200200
If you see this and the reported version number is sufficently high (often 3.6 or higher),**you are good to go**.
201201

202-
####Uh oh, your Python is badly outdated
202+
####2.7?Uh oh, your Python is badly outdated!
203203

204204
If`python3`**does NOT run successfully**, but`python` (without the 3) itself does and you see the output:
205205

@@ -291,7 +291,7 @@ The Python official installer can be found on **[python.org](http://python.org)*
291291

292292
* Generally uses[conda environements](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.
293293
* Packages available here often lag behind in release schedule from PyPI / pip
294-
* Often one whole version behind on Python (e.g. 3.8 rather than 3.9)
294+
* Often one whole version behind on Python (e.g. 3.9 rather than 3.10)
295295

296296
**Install steps - Anaconda distribution on Windows**
297297

@@ -324,12 +324,12 @@ The output should be one of the following (*version numbers will vary*). Don't t
324324

325325
```
326326
$ python3 -V
327-
Python 3.9.2
327+
Python 3.10.1
328328
```
329329

330330
If you see this and the reported version number is sufficently high (often 3.6 or higher),**you are good to go**.
331331

332-
####Uh oh, your Python is badly outdated
332+
####2.7?Uh oh, your Python is badly outdated!
333333

334334
If`python3`**does NOT run successfully**, but`python` (without the 3) itself does and you see the output:
335335

@@ -399,9 +399,9 @@ Ubuntu manages it's installed software using **[apt](https://ubuntu.com/server/d
399399

400400
* Generally uses[conda environements](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.
401401
* Packages available here often lag behind in release schedule from PyPI / pip
402-
* Often one whole version behind on Python (e.g. 3.8 rather than 3.9)
402+
* Often one whole version behind on Python (e.g. 3.9 rather than 3.10)
403403

404-
**Install steps - Anaconda distribution onWindows**
404+
**Install steps - Anaconda distribution onUbuntu**
405405

406406
1.[Download the Linux installer](https://www.anaconda.com/products/individual#)
407407
2. Run the installer, add Python to path if asked
@@ -432,14 +432,14 @@ While we would not generally recommend building Python 3 from source, if you nee
432432
3. Install the build tools:`sudo apt-get install -y build-essential checkinstall`
433433
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`
434434
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.9.2/Python-3.9.2.tgz`
436-
7. Decompress it (varies by version):`sudo tar xzf Python-3.9.2.tgz`
437-
8. Change into the created directory (varies by version):`cd Python-3.9.2`
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`
438438
9. Prepare it for compilation:`sudo ./configure --enable-optimizations`
439439
10. Compile it without modifying system Python:`sudo make altinstall`
440-
11. Verify this version was built (varies by version):`python3.9 --version`
441-
12. Use`python3.9` instead of`python` or`python3` commands
442-
13. Consider creating an[alias](https://www.howtogeek.com/73768/how-to-use-aliases-to-customize-ubuntu-commands/) of python3.9 to python in your shell profile.
440+
11. Verify this version was built (varies by version):`python3.10 --version`
441+
12. Use`python3.10` instead of`python` or`python3` commands
442+
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.
443443

444444
There is a[nice write up of this procedure over here](https://towardsdatascience.com/building-python-from-source-on-ubuntu-20-04-2ed29eec152b).
445445

@@ -450,4 +450,4 @@ There is a [nice write up of this procedure over here](https://towardsdatascienc
450450

451451
If you find a problem or have a suggestion to make this page better, please visit the GitHub repository here. Note that this is not intended for tech support but rather for genuine, broadly applicable improvements to the instructions:
452452

453-
[**https://github.com/talkpython/installing-python**](https://github.com/talkpython/installing-python)
453+
[**https://github.com/talkpython/installing-python**](https://github.com/talkpython/installing-python)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp