2.9.1. General information about Python

Notes:

  • To run Python scripts as CGI applications, use instruction.
  • If you have problems with Cyrillic output, use instruction.

Byconnecting to hosting via SSH, you can check the version numbers of the interpreters and the lists of available modules.

Supported versions: 2.7, 3.3, 3.6, 3.7, 3.8, 3.9, 3.10.

Python version check command (X.X — version number):

pythonX.X -V

The path to the Python interpreter of the desired version (X.X - version number):

/usr/bin/pythonX.X

Viewing the list of available modules:

  1. Enter interactive mode (X.X — Python version number):
    pythonX.X
  2. Run the command:
    help('modules')
  3. To exit interactive mode, press Ctrl+D or run the command:
    exit()

You can install additional modules by instructions. You can also leave a review in the reviews and suggestions section on our website so that the administration considers the possibility of its global installation.

Content