python命令行终端python.exe的提示符是什么,python在命令提示符下

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值