[Tutor] need help

Matthew Ngaha chigga101 at gmail.com
Thu Nov 1 23:37:17 CET 2012


>
> The interpreter executable in Windows is always called "python"
> (console) or "pythonw" (no console). The 3.1 installer doesn't put the
> executable's directory on the system PATH. The option to add this was
> added to the 3.3 installer. Otherwise you'll have to add the directory
> manually. In IDLE check the result of the following:
>
>     >>> import sys
>     >>> sys.executable
>     '/usr/bin/python3'
>
> For you it will probably display "C:\Python31\pythonw.exe". That being
> the case; you have to append "C:\Python31" to your PATH. You can do
> this temporarily using the cmd shell's "set" command (e.g. set
> PATH=%PATH%;C:\Python31), or permanently in the system registry by
> following instructions easily found online.
>

here were the results:

>>> import sys
>>> sys.executable
'D:\\Data\\Program Files Data\\Py\\pythonw.exe'
>>> '/usr/bin/python3'
'/usr/bin/python3'
>>>

i dont see Python31 .. is this Py that is supposed to be Python31?.. and do
i type this exactly like you did in cmd?

set PATH=%PATH%;C:\Python31  ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20121101/066e6c50/attachment.html>


More information about the Tutor mailing list