Home
/
Advanced Site Tools
/
SSH
/
How to see available python modules?

How to see available python modules?

To see the available python modules you should first access your account via SSH. Then, execute the this command:

python

You will see the following:

username@server [~]# python
Python 2.4.3 (#1, Sep 3 2009, 15:37:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

Then, to see the available modules, type:

help('modules')

which will list all currently available modules. On SiteGround’s servers, you can use different Python versions – 2.7 and 3.7. To use version 2.7, use the following:

python2.7

For python 3.7, use:

python3.7

Share This Article