[Tutor] need help

eryksun eryksun at gmail.com
Thu Nov 1 23:27:40 CET 2012


On Thu, Nov 1, 2012 at 5:55 PM, Matthew Ngaha <chigga101 at gmail.com> wrote:
>
> i type it in both IDLE and CMD. in the directory where i made those .html
> files, i held shift and right clicked to get the command line open. im on
> windows vista. the i type that line in there. i use Python 3.1

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.


More information about the Tutor mailing list