Windows command line not displaying print commands

Irmen de Jong irmen.NOSPAM at xs4all.nl
Mon Mar 30 17:37:06 EDT 2009


JonathanB wrote:
> Ok, I'm sure this is really simple, but I cannot for the life of me
> get any print statements from any of my python scripts to actually
> print when I call them from the windows command line. What am I doing
> wrong?
> 
> hello.py:
> print "Hello World!"
> 
> command line:
> E:\Python\dev>python hello.py
> 
> E:\Python\dev>
> 

Does just typing:

   python

give you an interactive prompt at all?

Or do you have a module in your E:\Python\dev directory called 'os', 'sys' or something
else that may clobber one of the default library modules.

-irmen



More information about the Python-list mailing list