- Is there a way to obtain a list of
Python modules available (i.e.
installed) on a machine?
This works for me:
help('modules')
- Where is the module code actually
stored on my machine?
Usually in /lib/site-packages
in your Python folder. (At least, on Windows.)
You can use sys.path
to find out what directories are searched for modules.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…