Install two different versions of Python in Windows

Source: Internet
Author: User

During this time, I bought a book that uses Python for data analysis. The book wants me to remove the Python environment that was originally installed, but I don't think this is going to work, and I've been writing a lot of things. so I found a solution in the blog, record it.

first, we installed two Python versions. we changed the python.exe of one of the files to python2.exe, and then the new Python path and its Scripts The path is written to the environment Variable. to use the original version to execute the test.py file directly with the Test.py. to execute with the new python, add Python2 test.py

We generally have to install the PIP so that we can install the Python expansion pack, now there are scripts in the two Python pip.exe so what now? the same method, change the name, I will be the newly installed Python pip.exe, changed to Pip_ data.exe, so the implementation can be divided into clear. but that's not a good idea. frustration will not be installed on the centos, can only be done on Windows on the Above.

The next way to get back is to remove the other environment variable every time you use one Python.

Install two different versions of Python in 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.