WINDOWS10 Python3 and Python2 installed simultaneously (ii) Python2.exe, Python3.exe and PIP2, PIP3 settings __python

Source: Internet
Author: User


Windows10 under Python3 and Python2 installation (ii)

Python2.exe, Python3.exe and PIP2, PIP3 settings


Description: Installation Python3 and Python2 please refer to this series of tutorials (i)


1. Add Python2 to System environment variables

Open, Control Panel \ System and Security \ System, select Advanced system settings, environment variables, select Path, click Edit, New, add D:\Python\python27 and D:\Python\python27\Scripts to environment variables, respectively.

Note:Python3 installation can optionally be automatically added to system environment variables, such as no selection, method and Python2 add process.

2, modify Python.exe name for Python2.exe and Python3.exe

Locate the installation directory for Python2 and Python3, and modify the Python.exe and Pythonw.exe names in python2.7.9 and python3.5.2 as Python2.exe, Pythonw2.exe and Python3.exe, Pythonw3.exe.

Then run the cmd command and enter Python2 to run the python2.7.9 version


Enter Python3 to run python3.5.2 version


At this point, Python2 and Python3 installed. 3, PIP2 and PIP3 settings

The Python installation package requires the Package management tool PIP, but when both Python2 and Python3 are installed, the PIP is only one version, and the following will provide a way to modify the two-version pip so that two Python versions of the PIP can coexist.

In the DOS command box, enter the command, python3-m pip install--upgrade pip--force-reinstall to display the reinstall success.


In the DOS command box, enter the command, python2-m pip install--upgrade pip--force-reinstall to display the reinstall success.

The two-version PIP information can now be viewed through pip2-v and pip3-v, and the individual Python packages will be installed in the future simply by running Pip2install xxx and pip3 install XXX.


At this point, PIP2 and PIP3 modified successfully.


All Python package download links are http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy











Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.