how to list all installed modules
Peter Otten
__peter__ at web.de
Wed Feb 18 11:42:07 EST 2009
harryos wrote:
> Is there a way to list all the installed modules in my python
> installation.I recently installed pygame and when i tried to import it
> like
>>>import pygame
> it complained that no such module was found.I can see the pygame
> directory in F:\Python25\Lib\site-packages in my machine,but am unable
> to import the module.So I was wondering if there is a way to list all
> the installed modules
>>> help("modules")
may help to get a list of modules (if it doesn't fail with an exception as
over here).
Regarding the original problem, do you have multiple Python installations?
If so, you may accidentally be running the "wrong" python.
Peter
More information about the Python-list
mailing list