据我了解,Python 2.7.9已安装Pip,但是当我尝试在CMD(Windows)中执行Pip命令时,出现以下错误:
'pip' is not recognized as an internal or external command, operable program or batch file.
当我输入python
时,我会得到以下结果,这表明它已经正确安装:
Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
我需要在CMD中添加一些环境变量才能让Python部分正常工作:
将
"C:\Python27\"
添加到环境变量PATH
中。定义系统变量
PYTHONPATH
:"C:\Python27\"
我在Python目录中没有找到Pip文件夹,但在C:\Python27\Lib\
中有一个名为"ensurepip"的文件夹。
有谁知道我该如何让Pip命令在CMD中开始工作吗?