Team
py comes with Python3.x and allows you to choose between multiple Python interpreters. For example, if you have both Python 3.4 and 2.7 installed, py -2 will start python2.7, and py -3 will start python3.4. If you just use py , it will run the one that was defined as the default.
So the official way would be to install Python 3.x, declare Python 2.7 as the default, and the py command will do its job.
But if you just want py be an alias of python , doskey py=python.exe suggested by @Nizil and @ergonaut will be much easier ... Or copy the python.exe file to the py.exe file in the Python27 folder if you don't want so that doskey restrictions doskey .
Serge Ballesta Sep 23 '15 at 14:40 2015-09-23 14:40
source share