Hi,
I am python newbie and the command prompt is having an issue with
python. I installed python 2.4.4 onto my windows machine, opened a
command prompt window, and typed python to start the interactive mode.
Got the following error.
D:\>python
''python'' is not recognized as an internal or external command,
operable program or batch file.
The following programs work fine
IDLE (Python GUI)
Python (command line)
PythonWin
For some strange reason, python is not recognized at the command
prompt.
Does anyone have any ideas as to why this is happening?
thanks,
解决方案
D:\>python
''python'' is not recognized as an internal or external command,
operable program or batch file.
[snip]
For some strange reason, python is not recognized at the command
prompt.
Sounds like your path isn''t set correctly. See the first section
here[1] on "Finding python.exe"
-tkc
[1]http://www.imladris.com/Scripts/PythonForWindows.html
[snip]
Sounds like your path isn''t set correctly. See the first section
here[1] on "Finding python.exe"
-tkc
[1]http://www.imladris.com/Scripts/PythonForWindows.html
Thanks Tim,
I set the pythonpath to where the python interpreter is located C:
\Python24
However I still get the same error message. Is there something else
that must be configured?
thanks.
* c3*****@hotmail.com wrote (on 11/1/2007 9:58 AM):
[snip]
>Sounds like your path isn''t set correctly. See the first section
here[1] on "Finding python.exe"
-tkc
[1]http://www.imladris.com/Scripts/PythonForWindows.html
Thanks Tim,
I set the pythonpath to where the python interpreter is located C:
\Python24
However I still get the same error message. Is there something else
that must be configured?
thanks.
It''s not the PYTHONPATH environment variable that you need to set.
You need to set the PATH environment variable to include C:\Python24.
That is where the Python executable is locate.
Mark