Changing between Python 2.x and 3.x in CMD windows?
You will need to make changes to your PATH environment variable. To do this, click the Start button, right-click Computer, click Properties, click Advanced System Settings in the left sidebar. Then click the Environmental Variables button.
In the "User or System Variables" section, the "PATH" variable will be listed, which includes the path to the Python installation. You can change this to the Python 3 install path.
You can also change the name of the Python 3 executable to "python3.exe" and add the directory to the path variable, separating it from other directories with a semicolon. Then you can use both 2 and 3 by calling python
and python3
respectively.
source to share