Picking Python 2 or Python 3 from Command Prompt in Windows

Easily easily switch between Python 2 and Python3 with simple Command Prompt syntax in Windows like Linux already has by creating a file C:\Anaconda\python3.bat with the contents:

c:\Anaconda3\python %*

Pick Python 2 or 3 from Windows Command Prompt

python blah.py

python3 blah.py

Leave a Comment