I have several python versions installed (and working properly on my machines). Isn't there a way to execute a specific version of python from the command line.
Say I want to use python 3.1. I am after something a SIMPLE COMMAND such as python3.1 or python31 that would be used as follows :python3.1 setup.py install, for instance.
[pip has pip3.1 to install a library with the version 3.1 of python, specifically]
/usr/bin/. Usually, the name of the executables ispython3.4,python2.7...etc so you should already be able to use them in the format you're asking for without any changes.$PATHjust prior to executing the Python code, so that the path to the particular Python version you use is at the front of$PATH.