Windows switch between python 2 and 3
Veek M
vek.m1234 at gmail.com
Thu Oct 27 11:26:32 EDT 2016
Daiyue Weng wrote:
> Hi, I installed Python 2.7 and Python 3.5 64 bit versions on Win 10.
> Under
>
> C:\Python35
>
> C:\Python27
>
> Both have been set in environment variable Path.
>
> When I type python in cmd, it only gives me python 2.7, I am wondering
> how to switch between 2 and 3 in command prompt.
>
> cheers
you could try typing the path to the interpreter:
c:\Python35\bin\python.exe foo.py
or changing the path ordering using 'set /?' i think - google
More information about the Python-list
mailing list