我已经安装了python 3.4并尝试使用pip来管理包但不幸的是我收到了这个错误

时间:2017-01-17 10:01:33

标签: python django python-2.7 python-3.x pip

操作系统:Windows 10

我安装了python 3.4。当我跑

python -m endurepip,

它说这是最新的。

但是当我跑这个时,

它返回

C:\Python34>pip install django
'pip' is not recognized as an internal or external command,
operable program or batch file.

即使我运行此命令,

C:\Python34>python -m pip --version
pip 1.5.4 from C:\Python34\lib\site-packages (python 3.4)

显示pip。

1 个答案:

答案 0 :(得分:0)

如果没有python.exe

,您无法从CMD调用C:\Python34>pip install django

CMD不知道pip是什么。

您必须将python exe指定为:(这适用于我)

C:\Python34>python.exe -m pip install django 

或者如果python.exe是system var:

python -m pip install django