Home  >  Article  >  Backend Development  >  Detailed graphic explanation of Python default version modification

Detailed graphic explanation of Python default version modification

高洛峰
高洛峰Original
2017-03-20 10:12:392031browse

PythonDefault version modification

When multiple versions of Python are installed on the computer, and the default Python in the Shell is not what you want, this time The default version of Python needs to be modified.

In Windows, you can achieve the goal by modifying the environment variables.

The specific method is to select Environment Variables in the Advanced tab of the system Properties:

Detailed graphic explanation of Python default version modification

Then select Path in System Variables for editing. You can see that Python 3.6 and Python 2.7 in Anaconda2 are installed in the system. If you need to set Python 3.6 as the default,

then put the directory where the Python.exe of Python 3.6 is located in front of Anaconda2, otherwise put behind.

Detailed graphic explanation of Python default version modification

Enter python in the Shell like this, and the default output is Python 3.6:

Detailed graphic explanation of Python default version modification

Note: python.exe If you don’t know the directory, you can use Everything software to search quickly.

The above is the detailed content of Detailed graphic explanation of Python default version modification. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn