I would like to get a list of Python modules, which are in my Python installation (UNIX server).
How can you get a list of Python modules installed in your computer?
I would like to get a list of Python modules, which are in my Python installation (UNIX server).
How can you get a list of Python modules installed in your computer?
on windows, Enter this in cmd
There are many ideas, initially I am pondering on these two:
pip
help('modules')
I need an easy approach, using basic libraries and compatible with old python 2.x
And I see the light: listmodules.py
Hidden in the documentation source directory in 2.5 is a small script that lists all available modules for a Python installation.
Pros:
In case you have an anaconda python distribution installed, you could also use
in addition to solutions described above.
From the shell
If that's not helpful, you can do this.
And see what that produces.
If we need to list the installed packages in the Python shell, we can use the
help
command as followsThis was inspired by Adam Matan's answer (the accepted one):
which then prints out a table in the form of
which lets you then easily discern which packages you installed with and without
sudo
.