I have a problem using python 2.5 from the command prompt

  • From: "ridge007@xxxxxxxxxxx" <Ridge007@xxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Thu, 16 Oct 2008 08:56:49 -0400

Hi everyone,
I'm using python2.5 from the command prompt. When I attemp to execute a 
script I'm getting the result below. I'm assuming the interpreter isn't in 
the search path. If that is the problem:
How do I set the environment variable?
below are the results of my two attempts to run a file:
>>> py_fruit.py
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'py_fruit' is not defined
>>> python py_fruit.py
File "<stdin>", line 1
python py_fruit.py
^
SyntaxError: invalid syntax
>>> python py_fruit.py
Thanks much!
Rob! 

__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: