Modify the default Python version.
Python default version Modification
When multiple versions of Python are installed on the computer, and the default Python version in Shell is not what you want, you need to modify the default version of Python.
InWindowsYou can modify the environment variables to achieve the goal.
The specific method is to select the environment variable in the Advanced tab of 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. If you need to set Python 3.6 as the default,
Put the directory of Python 3.6's python.exe in front of Anaconda2; otherwise, put it in the back.
In this case, input python in Shell. The default value is Python 3.6:
Note: If you do not know the directory where python.exe is located, you can use the Everything software to quickly search.