pip image installation:PIP Install * * * * https://pypi.douban.com/simple
- Install Python2 First, then remember the installation location (you can also specify the installation directory, my installation directory is: D:\software\python2)
- Change the installed Python.exe to Python2.exe (under: D:\software\python2)
- Then run at the command line: Python2, if there is a return to indicate that the installation is successful; error may be the installation failed or the environment variable is not configured, the environment variable is configured well
- After installation, if PIP is installed together, the files in the directory where PIP will be installed are deleted (mine is in D:\software\python2\Scripts)
- Then download the PIP installation package on GitHub, unzip it and run it in the unpacked directory: Python2 setup.py Install
- Back to D:\software\python2\Scripts, you will find that PIP has been installed, and finally delete the Pip.exe file, leaving only Pip2.exe and Pip2.7.exe on it (to differentiate Python3 pip3 behind)
- Then execute at the command line: PIP2 to see if the installation is correct
- Next install Python3, install it in the Python3 directory (my is D:\software\python3)
- Change the installed Python.exe to Python3.exe (under: D:\software\python2)
- Then run at the command line: Python3, if there is a return to indicate that the installation is successful; error may be the installation failed or the environment variable is not configured, the environment variable is configured well
- After installation, if PIP is installed together, the files in the directory where PIP will be installed are deleted (mine is in D:\software\python3\Scripts )
- Run in Unzip directory: Python3 setup.py Install
- Back to D:\software\python3\Scripts, you will find that PIP has been installed, and finally the Pip.exe file will be deleted, leaving only Pip3.exe and Pip3.5.exe.
- This allows both Python2 and python3 to be present on the computer, as well as using PIP2 or PIP3 to install a different dependency package
Simultaneous installation of Python2 and Python3 to make it coexist