I have python v2.7 and 3.6 on Windows 10. I installed 3.6 later and also chose the option "Add to PATH". In the command line, when I type python, I get v3.6. I already tried to set PATH in View Advanced System Settings, but it doesn't work and python 3.6 is also no where to be found there. So when I want to set v2.7 as default (in order to run python script in the Atom Editor or the cmd), I have to reinstall v2.7 and ticked the "Add to PATH" option.
How can I set my new default python version to use for example in a text editor or cmd... without having to reinstall it?
edit enviroment variablesin start)PATHdirectories and also tries appending the extensions inPATHEXT. Stating with Vista, it includes the working directory only ifNeedCurrentDirectoryForExePath(name)is true, which depends on the value of the environment variableNoDefaultCurrentDirectoryInExePath.py -2 script.py,py -3 script.pyor the specific versionpy -3.6 script.pyinstead of fiddling with the PATH. As for the Atom problem, there are some other threads on SO: stackoverflow.com/a/36710442/6220679 or this stackoverflow.com/a/42033743/6220679 (try to set it to "py -2")