Python Default version modification

Source: Internet
Author: User
Python Default version modification

When the computer has multiple versions of Python installed, and the default Python in the shell is not what you want, you will need to modify the default version of Python.

In Windows , you can do this by modifying the environment variables.

To do this, select the environment variable in the Advanced tab of the System properties:

Then select path in the system variable to edit it. You can see that Python 3.6 and Python 2.7 in Anaconda2 are installed in the system, and if you need to make Python 3.6 the default,

Then place the directory of Python 3.6 Python.exe in front of the Anaconda2, or put it behind.

To enter Python in the shell, the default is Python 3.6:

Note: Python.exe can use everything software to search quickly if you do not know where the directory is located.

Python Default version modification

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.