I seek to be able to type something like
python36
or:
python35
in the command prompt to be be able to run 3.6 or 3.5 shells, respectively. When I type python in the command prompt, it only opens a 3.5 shell, and if I try to specify 3.6 by typing python3.6
or python3.5
or python36
or python35
, it doesn't recognize the commands. For both installations, I checked the "Add to my path" box, and have since tried to manually add them to my path using system settings/advanced/environment variables, etc, but it's not clear to me how to best do this.
I am using Windows 7.
Best Answer
Call
py.exe
instead ofpython
:py -3.6
will open a 3.6 shell;py -3.5
will open a 3.5 shell;py
(check the version of an open shell: it could depend on installation and further settings).Source: Python Launcher for Windows