user6740138 user6740138 - 1 year ago 152
Python Question

python path in command prompt

I had python3 installed on my computer after python2. Then I executed "python" in command prompt, python3 showed up.
How do command prompt find the python without specifying the path?
Can I switch it back to python2 without reinstalling?

Answer Source

If you are on windows you need the python27 to be first in your PATH enviroment variable


or just write

py -2

To start python2

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download