'pip' 不被识别为内部或外部命令 [英] 'pip' is not recognized as an internal or external command

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

问题描述

我在我的电脑上安装 Django 时遇到了一个奇怪的错误.

I'm running into a weird error when trying to install Django on my computer.

这是我在命令行中输入的序列:

This is the sequence that I typed into my command line:

C:Python34> python get-pip.py
Requirement already up-to-date: pip in c:python34libsite-packages
Cleaning up...

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

C:Python34> libsite-packagespip install Django
'libsite-packagespip' is not recognized as an internal or external command,
operable program or batch file.

这可能是什么原因造成的?

What could be causing this?

这是我输入 echo %PATH% 时得到的:

This is what I get when I type in echo %PATH%:

C:Python34>echo %PATH%
C:Program FilesImageMagick-6.8.8-Q16;C:Program Files (x86)InteliCLS Client
;C:Program FilesInteliCLS Client;C:Windowssystem32;C:Windows;C:WindowsS
ystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)
Windows LiveShared;C:Program Files (x86)IntelOpenCL SDK2.0inx86;C:Progr
am Files (x86)IntelOpenCL SDK2.0inx64;C:Program FilesIntelIntel(R) Mana
gement Engine ComponentsDAL;C:Program FilesIntelIntel(R) Management Engine C
omponentsIPT;C:Program Files (x86)IntelIntel(R) Management Engine Components
DAL;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsIPT;C:P
rogram Files (x86)
odejs;C:Program Files (x86)Herokuin;C:Program Files (x
86)gitcmd;C:RailsInstallerRuby2.0.0in;C:RailsInstallerGitcmd;C:RailsIn
stallerRuby1.9.3in;C:UsersJaviAppDataRoaming
pm

推荐答案

对于 Windows,当你安装一个包时,你输入:

For Windows, when you install a package, you type:

python -m pip install [packagename]

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

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