2018-06-14 16:14:51
1. When installing Python2 and Python3 at the same time, Pip is just one version, when using the Python version of Pip, enter the following command at the command line:
View the version of PIP under different Python versions
Python3-m pip-v
Python2-m pip-v
Install the respective Python packages
python3-m pip xxx
python2-m pip xxx
2, the following modification method can reinstall two versions of PIP, so that two Python versions of PIP can coexist
In the DOS command box, enter the command, python3-m pip install--upgrade pip--force-reinstall, to show that the reinstallation was successful.
In the DOS command box, enter the command, python2-m pip install--upgrade pip--force-reinstall, to show that the reinstallation was successful.
The two versions of PIP information can now be viewed through pip2-v and pip3-v, with the ability to install their own Python packages later by running PIP2 install XXX and pip3 install XXX.
This article only records some of the operations that have been installed with py2 and Py3, please refer to the following for specific installation procedures:
Win10 Python3 and Python2 simultaneous installation and resolution of PIP coexistence issues
78121936
Installation of Py2 and Py3 on WINDOWS10