[Tutor] help with getting python to run from command prompt onWindows XP
Brian van den Broek
broek at cc.umanitoba.ca
Thu Jan 15 17:27:19 CET 2009
Alan Gauld said unto the world at 14/01/09 07:34 PM:
>
> "Brian van den Broek" <vanden at gmail.com> wrote
>
>> icon for Idle launching as expected. When run from IDLE, `print
>> sys.executable' yields `C:\\Python26\\pythonw.exe'.
>> He reports that C:\Python26 contains both python.exe and pythonw.exe.
>>
>> I've had him add the text `;C:\Python26' (without quotes) to the end
>> of his Path environment variable via the Control Panel|System
>> Properties way of editing Environment variables. I've had him reboot
>> afterwards.
>
> Get him to type
>
> SET > env.txt
>
> at the DOS prompt that should list all environment variables into env.txt
>
> Get him to email that file to you and check what it says about PATH.
>
>> After all of that, he reports that an attempt to run python from the
>> command prompt produces a complaint that `` `python' is not recognized
>> as an internal or external command, operable program or batch file.''
>
> What happens if he types
>
> C:PROMPT> C:\Python26\python.exe
>
> In other words uses the full path?
Hi all,
Thanks to all respondents for the input. Apologies for the delay in
reply; there's a bit of a lag as I'm communicating with my friend by
email, too.
With the full path, python loads as expected. I'm awaiting the results of
SET > env.txt
as per Alan's suggestion above.
If that doesn't clear it up for me, I shall report back.
Thanks again,
Brian vdB
More information about the Tutor
mailing list