[python-win32] Python Newbie Question

John Machin sjmachin at lexicon.net
Thu Feb 23 02:12:24 CET 2006


On 23/02/2006 11:53 AM, Heang Lim wrote:
> I've installed Python on my c:\python23 directory and Apache on my
> c:\Apache2 directory.  On my DOS windows, I went to c:\Apache\htdocs
> directory and enter 'python' to go into the interactive mode.  When I
> tried to import some modules such as 'import os' or 'import string', I
> was getting 'ImportError: no module named os', etc.  Am I missing some
> sort of environment variable setting somewhere?   I have my PYTHONPATH
> system variable set to 'c:\python23'.
> 
do this:
DOS-prompt>python
>>> import sys
>>> sys.path
and show us the output (copy/paste).



More information about the Python-win32 mailing list