python command not working

Christian Heimes lists at cheimes.de
Wed Apr 22 05:24:21 EDT 2009


David Cournapeau schrieb:
> On Wed, Apr 22, 2009 at 4:20 PM, 83nini <83nini at gmail.com> wrote:
>> Hi guys,
>>
>> I'm new to python, i downloaded version 2.5, opened windows (vista)
>> command line and wrote "python", this should take me to the python
>> command line, but it did not! i'm getting : python is not an internal
>> command, external command, program, or command file.
> 
> The installer does not add the path of python into your %PATH%
> variable, You have to do it manually or call the full command path
> (C:\Python25\python.exe or something)

I highly recommend against adding C:\Python25 to your %PATH%. You can
get the same effect by adding a simple bat file to C:\Windows\System32

---
@C:\Python25\python.exe %*
---

Call it python25.bat and you are done. Apropos call, don't forget to
"call python25" in batch files. :)

Christian




More information about the Python-list mailing list