python2,3 two versions of Windows systems exist at the same time

Source: Internet
Author: User

Specific steps:

1Install the downloaded Python2 and Python3 interpreter locally, such as the C packing directory2. Open, Control Panel \ System and Security \ System, select Advanced system settings, environment variables, select Path, click Edit, Create new, add C:\Python\python27 and C:\Python\python27\Scripts to environment variable separately3. Python3 Ibid, add C:\Python\python36 and C:\Python\python36\Scripts to environment variables respectively4Modify the EXE file under the respective installation directory, for example, the Python.exe file under the C:\Python\python36 directory is named Python3.exe, and the Pythonw.exe is changed to Pythonw3.exe. Python2 the same operation3. CMD (Administrator rights) command-line test, expand the corresponding interpreter version: Python2 Python34. Handling PIP2 and PIP3 issues, cmd (Administrator rights) input: Python3-m pip install--upgrade pip--force-Reinstall Python2-m pip install--upgrade pip--force-Reinstall5Check the test, the corresponding version and installation location, PIP3-V PIP2-V6. To this is OK, according to different interpreters choose different pip to install the module
Example

From

http://blog.csdn.net/sgfmby1994/article/details/77969681

End

python2,3 two versions of Windows systems exist at the same time

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.