To run Python from SSH , CRON , or WEB-SSH , you can use different versions of the interpreter to choose from, specifying the absolute path to the desired version, for example:
Calling the Python 3.11.3 interpreter
/opt/alt/python311/bin/python3
Calling the Python 3.10.9 interpreter
/opt/alt/python310/bin/python3
Calling the Python 3.9.16 interpreter
/opt/alt/python39/bin/python3
Calling the Python 3.8.12 interpreter
/opt/alt/python38/bin/python3
Calling the Python 3.7.3 interpreter
/opt/alt/python37/bin/python3
Calling the Python 2.7.16 interpreter
/opt/alt/python27/bin/python2
Calling the Python 2.7.5 interpreter
/usr/bin/python
Pay attention! By default alias
python will call version 2.7.5 in the console, however you can override alias by assigning it the desired version in bashrc
All question categories