无法将“ python”识别为内部或外部命令 [英] 'python' is not recognized as an internal or external command

查看:84
本文介绍了无法将“ python”识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我最近安装了Python版本2.7.5,并做了一些循环操作,但是问题是,当我转到cmd并键入 python testloop.py 我收到错误消息:

So I have recently installed Python Version 2.7.5 and I have made a little loop thing with it but the problem is, when I go to cmd and type python testloop.py I get the error:


'python'不被识别为内部或外部命令

'python' is not recognized as an internal or external command

我尝试设置路径但无济于事。

I have tried setting the path but no avail.

这是我的路径:


C:\Program Files\Python27

C:\Program Files\Python27

当您可以看到,这是我的Python的安装位置。我不知道该怎么办有人可以帮忙吗?

As you can see, this is where my Python is installed. I don't know what else to do. Can someone help?

推荐答案

您需要将该文件夹添加到Windows路径:

You need to add that folder to your Windows Path:

https://docs.python.org/2/using/windows。 html 来自这个问题。

这篇关于无法将“ python”识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆