Since Python 3 is now stable, it is a future version. The new scholar can learn directly from python3. But there are still many enterprise applications that use Python 2 and may have to be maintained. so, We can install Python multi-version in local windows and be familiar with it.
one: Download Python 3
Website Address: https://www.python.org
two: Install Python 3
When installing, tick "Add Python 3.x to PATH" or configure environment variables after installation
three: Configuration1. Modify Python.exe
Rename the C:\Python35\python.exe under the installation directory to Python3.exe
2. Modify Pip.exe
Delete the C:\Python35\Scripts\pip.exe from Python 3
3. Update PIP
c:\windows\system32>in'"'
If there is an error above, re-update the pip for python3, the command is as follows
Install -U pipcollecting pip downloading pip-8.1. 2-PY2.PY3-NONE-ANY.WHL (1. 2MB) |███████████▏ 0:00 :successfully installed PIP-8.1. 2
Four: Check the installation situation
c:\windows\system32>python-Vpython2.7.9C:\WINDOWS\System32>python3-Vpython3.5.2C:\WINDOWS\System32>pip-Vpip1.5.6From C:\Python27\lib\site-packages (python2.7) C:\WINDOWS\System32>pip3-Vpip8.1.2From C:\python35\lib\site-packages (python3.5) C:\WINDOWS\System32>where Pythonc:\python27\python.exec:\windows\system32>where Python3c:\python35\python3.exe
View Code
Install Python multi-version environment in Window