How multiple versions of Python are set without conflicts

Source: Internet
Author: User

    Also equipped with Python2.7 and Python3.5 instructions.

1: Set up a Python version that right-clicked the "Edit with IDLE" option?

Enter the registry in the run input "regedit";

Find [Hkey_classes_root\python.file\shell\edit with Idle\command] and you can see that the data has been modified to version 2.7

Double-click Default to change the value to "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\pythonw.exe" C:\Users\ Administrator\appdata\local\programs\python\python35-32\lib\idlelib\idle.pyw "-E"%1 "

Issue 2: How to specify a double-click program to open the ". Py" File

Enter the registry in the run input "regedit";

Find [Hkey_classes_root\python.file\shell\open\command]

Change the value to "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\py.exe" "%l"%*

Modify the environment variable at the same time path C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32; C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\Scripts

Issue 3: Use 2.7 When using 2.7 Runtime, right-click to execute

Enter the registry in the run input "regedit";

Locate the new "run through Python2.7" item in the [Hkey_classes_root\python.file\shell] entry, and in the new item "command", set the default value to "C:\Python27\python.exe" "%1"%*

Issue 4: If both Python3.5 and Python2.7 are present in the system, enter Python in command mode and the default is execute python2.7

Note: Enter quit () or exit () to exit Python2.7, if you want to enter Python3? You only need to enter Python-3.

Problem 5:pip Installing a new module

Python2.7 is using the PIP module name

Python3.5 is using the py-3-m pip install xxxx command.

Where the problem 4,5 not practiced, the direct copy of the Little Turtle

This article refers to: How to make multiple versions of Python coexist harmoniously http://bbs.fishc.com/thread-58701-1-1.html



How multiple versions of Python are set without conflicts

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.