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?
I ran into a custom installed python 2.7 on OS X. It required X11 to list modules installed (both using help and pydoc).
To be able to list all modules without installing X11 I ran pydoc as http-server, i.e.:
Then it's possible to direct Safari to
http://localhost:12345/
to see all modules.Very simple searching using pkgutil.iter_modules
In
ipython
you can type "import
Tab".In the standard Python interpreter, you can type "
help('modules')
".At the command-line, you can use
pydoc
modules
.In a script, call
pkgutil.iter_modules()
.Aside from using
pip freeze
I have been installing yolk in my virtual environments.