CityHost.UA
Help and support

Python interpreter call

To run Python with SSH, CRON or WEB-SSH, you can use different versions of the interpreter by 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.18 interpreter

/usr/bin/python2

 

Note! By default, alias python2 will call version 2.7.18 in the console, but you can override the alias by assigning it the desired version in bashrc


Similar articles