Reputation: 3
I had Python3 installed on my computer after Python2. Then I executed "python" in command prompt, Python3 showed up. How does the command prompt find Python without specifying the path? Can I switch it back to Python2 without reinstalling?
Upvotes: 0
Views: 120
Reputation: 8066
If you are on windows you need the python27 to be first in your PATH enviroment variable
PATH=c:\python27;otherstuff...;c:\python35;...;
or just write
py -2
To start python2
Upvotes: 2