Forwarding to the list.
Martijn wrote:
On Tue, Mar 30, 2010 at 12:15 PM, Christian Witts
<cwi...@compuscan.co.za <mailto:cwi...@compuscan.co.za>> wrote:
Oshan Modi wrote:
i am only a novice and just started programming.. i am having
trouble running a .py file in the command prompt.. if anyone
of you could help?
------------------------------------------------------------------------
_______________________________________________
Tutor maillist - Tutor@python.org <mailto:Tutor@python.org>
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
If you are using Windows and just installed Python and then tried
to execute your script with "python script_name.py" and it tells
you it cannot find the program to execute then it is likely your
environment settings as the Python installer never seems to set up
your path properly.
Go to My Computer -> Advanced Settings -> Environment Settings ->
Double-Click on path -> Add your python path eg. c:\python26 at
the end
I think it should be capitalized, but I'm not sure, so:
For Python 2.6:
C:\Python26
For Python 3.1:
C:\Python31
If you didn't install it on the C: drive, change C: to the drive
letter you installed it on.
Also, check if there's a semicolon ( ; ) at the end of the path before
you add the python path, if there isn't, add it first. Now you can
continue :)
Martijn
-> Restart and it should work.
--
Kind Regards,
Christian Witts
_______________________________________________
Tutor maillist - Tutor@python.org <mailto:Tutor@python.org>
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Windows is case insensitive when it comes to paths and executables names
so it shouldn't matter. The semi-colon I forgot to mention though. :)
--
Kind Regards,
Christian Witts
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor