Home >Backend Development >Python Tutorial >Detailed graphic explanation of Python default 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:
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.
Enter python in the Shell like this, and the default output is Python 3.6:
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!