Re: How to configure Python in Windows



cosmo_general@xxxxxxxxx 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!

http://www.python.org/doc/faq/windows/

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

.



Relevant Pages

  • Re: perl to python
    ... sed and perl can let you do all that quick command line stuff. ... into a full blown script. ... scripts, call it from the python interpreter, whatever I need. ... If I stick to the traditional unix approach, ...
    (comp.lang.python)
  • Re: newbie question
    ... Python is fun and it's easier to use a real OS to develop the programs, ... Grant it I am a command line junky, ... "The script can be given a executable mode, or permission, using the ... the above seems to me like you are useing windows. ...
    (comp.lang.python)
  • Re: Python executable
    ... Python scripts can be made directly ... >of the script and giving the file an executable mode. ... >$ chmod +x myscript.py ... >but I was given the bash: helloworld.py: command not found error. ...
    (comp.lang.python)
  • Re: Module problem
    ... I am writing some simple script, and when I start my script from command ... Do you have more than one version of Python installed? ...
    (comp.lang.python)
  • Re: Linux application deployment
    ... > The list of command line arguments passed to a Python script. ... > argv has zero length. ...
    (comp.lang.python)