How to configure Python in Windows

Larry Bates larry.bates at websafe.com
Thu Feb 28 18:52:56 EST 2008


cosmo_general at yahoo.com wrote:
> Hi Folks,
> 
> I just downloaded precompiled Python for Windows, and it runs. Now I
> have got the command line coding. However, I can't run my python
> scripts. My python script, foo.py, is located in C:\\....\pydir, and I
> have set the python interpreter on the directory. When I run
> os.listdir(), I found my script of foo.py is right in the pydir. But,
> when I tried to run command-line python foo.py, to compile it, I got
> "Syntax error: invalid syntax". I guess the interpreter did not find
> my script foo.py.  In the past, I worked python on unix/linux, and I
> knew how set the path, and I ran my python scripts smoothly. I wonder
> anybody can help me to configure the python interpreter? Thanks!
> 
> Muddy Coder

Syntax error is not give if interpreter can't find a script.  You should post 
full tracebacks on this newsgroup so we can help.  It is more likely that you 
actually have a syntax error in foo.py.

-Larry



More information about the Python-list mailing list