0

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?

1
  • 2
    What OS do you use? Commented Aug 21, 2016 at 10:37

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

1 Comment

Please note that there is no mention of Python2.7 in OPs post, nor does python have to be installed in the root of drive C.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.