I have recently started learning Python and I have 2 questions relating to modules.
- Is there a way to obtain a list of Python modules available (i.e. installed) on a machine?
- I am using Ubuntu Karmic and Synaptic for package management. I have just installed a python module.Where is the module code actually stored on my machine? (is there a default [recommended] location that modules are stored)?
sys
then runsys.path()
, it shows all the paths for python./usr/local/lib/python3.x/dist-packages
worked for me. – cs1349459path
is not a function, it'sA list of strings that specifies the search path for modules
. docs – Tom Saleeba