Install Python multi-version environment in Window

Source: Internet
Author: User

Since Python 3 is now stable, it is a future version. The new scholar can learn directly from python3. But there are still many enterprise applications that use Python 2 and may have to be maintained. so, We can install Python multi-version in local windows and be familiar with it.

one: Download Python 3

Website Address: https://www.python.org

two: Install Python 3

When installing, tick "Add Python 3.x to PATH" or configure environment variables after installation

three: Configuration1. Modify Python.exe

Rename the C:\Python35\python.exe under the installation directory to Python3.exe

2. Modify Pip.exe

Delete the C:\Python35\Scripts\pip.exe from Python 3

3. Update PIP
c:\windows\system32>in'"'

If there is an error above, re-update the pip for python3, the command is as follows

Install -U pipcollecting pip  downloading pip-8.1.  2-PY2.PY3-NONE-ANY.WHL (1. 2MB)    |███████████▏                    0:00 :successfully installed PIP-8.1. 2
Four: Check the installation situation
c:\windows\system32>python-Vpython2.7.9C:\WINDOWS\System32>python3-Vpython3.5.2C:\WINDOWS\System32>pip-Vpip1.5.6From C:\Python27\lib\site-packages (python2.7) C:\WINDOWS\System32>pip3-Vpip8.1.2From C:\python35\lib\site-packages (python3.5) C:\WINDOWS\System32>where Pythonc:\python27\python.exec:\windows\system32>where Python3c:\python35\python3.exe
View Code

Install Python multi-version environment in Window

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.