Picking Python 2 or Python 3 from Command Prompt in Windows

Create a file C:\Anaconda\python3.bat

with the contents

c:\Anaconda3\python %*

Assuming you have Anaconda and Anaconda3 installed already.

Pick Python 2 or 3 from Windows Command Prompt

python blah.py

python3 blah.py

Leave a Comment