Install both Python2.7.10 and 3.5.0 under Windows

Source: Internet
Author: User

1. Download the two latest version of the Python installation package on the Python website: www.python.org

Windows x86-64 Executable Installer

Windows x86-64 MSI Installer

Separately installed in C:\Python35 and C:\Python27

2. Check the following 4 variables in the PATH environment variable (the environment variables in path are separated by semicolons):

1) c:\Python27

2) c:\Python27\Scripts

3) C:\Python33

4) c:\Python33\Scripts

Which one is less, and the semicolon is separated

3. Go to the Python35 directory and rename the Python.exe to Python3.exe

Go to the Python27 directory and rename the Python.exe to Python2.exe

4. In command line mode, input Python3 or Python2 can enter the corresponding interactive environment

5. go to the Python installation path find the Scripts folder, go inside to find pip*-script.py, open modify the first sentence for the Python interpreter you want to specify

  

Install both Python2.7.10 and 3.5.0 under Windows

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.