An implementation of the py
command for UNIX-based platforms.
The goal is to have py
become the cross-platform command that all Python users
use when executing a Python interpreter. Not only is it is short and to the
point, but it also provides a single command that documentation can use in
examples which will work regardless of what operating system a user is on.
Lastly, it side-steps the "what should the python
command point to?" debate by
clearly specifying that upfront (i.e. the newest version of Python that is
installed).
py -3.6
PATH
for python3.6
py -3
PATH
for all instances of python3.Y
Y
py
PATH
for all instances of pythonX.Y
X.Y
versionPEP 397: Python launcher for Windows (documentation)
-
py -0
pip list
?py -h
emits its own help before continuing on to call python
Pipfile
and its python_version
field?2.7-framework=/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
?2.7=/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python