how to list all installed modules

harryos oswald.harry at gmail.com
Thu Feb 19 05:21:51 EST 2009


On Feb 18, 11:10 pm, Scott David Daniels <Scott.Dani... at Acm.Org>
> Are you running F:\Python25\python.exe (or F:\Python25\pythonw.exe)?
> open a command window (run cmd), and type:
>      C:\> python
>      ...
>      >>> import sys
>      >>> for dirname in  sys.path:
>              print sys.path
>
> I suspect something you see printed will surprise you.
> Either the banner, identifying a Python version you were
> not expecting, or perhaps a bunch of C:-based directories.
> If this does not help you decipher the problem, try running
>       python -v
> Python verbose mode (You will get a _lot_ of output).
> Then, when you (finally) get a ">>>" prompt, type:
>     >>> import pygame
> and you will see eaxctly what lookups are tried.


thanks Scott for the detailed reply..
I reinstalled python and pygame and now things are working..:-)
thanks  again
harry



More information about the Python-list mailing list