How to upgrade a Python installation on Windows 10?

I have Python 2.7.11 installed on one of my LAB stations. I would like to upgrade Python to at least 3.5.

How should I do it? Should I completely remove the program 2.7.11 and install a new one? Is there any way to update it? Is updating a good idea?

+35
source share
4 answers

Each minor version of Python, that is, any version 3.x and 2.x, will be installed side by side with other versions on your computer. Only patch versions will update existing installations.

, Python 2.7 , . Python 2.7, - .

Python 3 py.exe, . PATH, py python . Python PATH. , Python , . py script.py python script.py . , , , py -3 py -3.6, , ( 3.x).

, Python 2 ( Python 3), Python 2.7. py -2 script.py script.


PyPI, Python , . , , , . pip; , pip . Python PATH, pip. , py.exe : py -m pip pip. , Beautiful Soup Python 3.6, py -3.6 -m pip install beautifulsoup4.

+33

Python 2.x Python 3.x . Python 2, .

Python 3, Python 3 , Python 2.x Python 3.x > > a > > .

+3

pip . .

pip install python --upgrade pip install python -U

python27. , , . :

, - , .

+2
source

In 2019, you can set using chocolate . Open your cmd or powershell, type "choco install python".

0
source

Source: https://habr.com/ru/post/1681587/


All Articles