One, Python installation 1. Download the installation package
1 https://www.python.org/ftp/python/2.7.14/python-2.7.14.amd64.msi # 2.7 installation package 2 3 https://www.python.org/ftp/python/3.6.4/python-3.6.4-amd64.exe # 3.6 installation Package
2. Installing Python3.6
3. Test under the command line
4. Installing python2.7
5. Add Python2 to environment variables
1 C:\Python27\Scripts\; C:\Python27\;
6. Change Python.exe and Pythonw.exe under the C:\Python27 directory to Python2.exe and Pythonw2.exe
7. Change Python.exe and Pythonw.exe under the C:\Python36 directory to Python3.exe and Pythonw3.exe
8. At this point, enter Python3 on the command line to represent Python3 input Python2 representative Python2
Second, the installation of PIP
1 # 2 python3-m pip install--upgrade pip--force-Reinstall3 python2-m pip install--upg Rade pip--force-Reinstall4 5 6# view pip version 7 8 PIP3-V9 pip2-v
Python2 and Python3 coexistence under Windows installation