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

问题:安装pip时,在命令行窗口中运行python setup.py install报错'python' is not recognized as an internal or external command

解决方法:首先,检查电脑上是否已经安装Python。在cmd里输入python,回复版本号,说明有安装。安装python之后,需要在系统变量设置Path,将Python安装目录路径加入Path,重启cmd,再运行python setup.py install就可以正常安装了pip了。

你可能感兴趣的:(Windows,Python,python,开发语言)