标签: pip

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

我试图在我的计算机上安装Django时遇到了一个奇怪的错误.

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

C:\Python34>python get-pip.py
Requirement already up-to-date: pip in c:\python34\lib\site-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>lib\site-packages\pip install Django
'lib\site-packages\pip' is not recognized as an internal or external command,
operable program or batch file. 
Run Code Online (Sandbox Code Playgroud)

可能是什么导致了这个?

编辑___________________

根据要求,当我输入echo%PATH%时,这就是我得到的

C:\Python34>echo %PATH%
C:\Program Files\ImageMagick-6.8.8-Q16;C:\Program Files (x86)\Intel\iCLS Client\
;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\S
ystem32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\
Windows Live\Shared;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Progr
am Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R) Mana
gement Engine Components\DAL;C:\Program Files\Intel\Intel(R) …
Run Code Online (Sandbox Code Playgroud)

python django pip

286
推荐指数
16
解决办法
79万
查看次数

如何修复'ImportError:无法导入名称IncompleteRead'?

当我尝试用pip或安装任何东西时pip3,我得到:

$ sudo pip3 install python3-tk
Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip3')()
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2476, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
  File "/usr/lib/python3/dist-packages/pip/__init__.py", line 61, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/usr/lib/python3/dist-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/usr/lib/python3/dist-packages/pip/download.py", line 25, in <module>
    from …
Run Code Online (Sandbox Code Playgroud)

python pip

285
推荐指数
10
解决办法
32万
查看次数

在代理后面使用pip

我正在尝试在工作中使用代理背后的pip.

这篇文章的答案之一建议使用CNTLM.我按照其他帖子安装并配置了它,但是运行时cntlm.exe -c cntlm.ini -I -M http://google.com出错了Connection to proxy failed, bailing out.

我也试过pip install -–proxy=user:pass@localhost:3128(默认的CNTLM端口)但是提出了Cannot fetch index base URL http://pypi.python.org/simple/.很明显,代理商可以做些什么.

有没有人知道如何更确切地检查CNTLM是否设置正确,或者是否还有另一种解决方法?我知道你也可以http_proxy这里描述的那样设置环境变量,但是我不确定要放入什么凭证.来自哪些凭证cntlm.ini

python proxy pip

271
推荐指数
17
解决办法
67万
查看次数

clang错误:未知参数:'-mno-fused-madd'(python包安装失败)

尝试psycopg2通过Pip在Mavericks 10.9上安装时出现以下错误:

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
Run Code Online (Sandbox Code Playgroud)

不确定如何继续并在此处和其他地方搜索此特定错误.任何帮助深表感谢!

以下是pip的完整输出:

$ pip install psycopg2
Downloading/unpacking psycopg2
  Downloading psycopg2-2.5.2.tar.gz (685kB): 685kB downloaded
  Running setup.py (path:/private/var/folders/0z/ljjwsjmn4v9_zwm81vhxj69m0000gn/T/pip_build_tino/psycopg2/setup.py) egg_info for package psycopg2

Installing collected packages: psycopg2
  Running setup.py install for psycopg2
    building 'psycopg2._psycopg' extension
    cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.5.2 (dt dec pq3 …
Run Code Online (Sandbox Code Playgroud)

python pip clang osx-mavericks

269
推荐指数
4
解决办法
7万
查看次数

libpml使用pip安装错误

这是我的错误:

(mysite)zjm1126@zjm1126-G41MT-S2:~/zjm_test/mysite$ pip install lxml
Downloading/unpacking lxml
  Running setup.py egg_info for package lxml
    Building lxml version 2.3.
    Building without Cython.
    ERROR: /bin/sh: xslt-config: not found

    ** make sure the development packages of libxml2 and libxslt are installed **

    Using build configuration of libxslt
Installing collected packages: lxml
  Running setup.py install for lxml
    Building lxml version 2.3.
    Building without Cython.
    ERROR: /bin/sh: xslt-config: not found

    ** make sure the development packages of libxml2 and libxslt are installed **

    Using build configuration …
Run Code Online (Sandbox Code Playgroud)

python lxml pip

262
推荐指数
11
解决办法
27万
查看次数

此平台上不支持filename.whl

我想安装scipy-0.15.1-cp33-none-win_amd64.whl我保存到本地驱动器.我在用:

pip 6.0.8 from C:\Python27\Lib\site-packages
python 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit (AMD64)]
Run Code Online (Sandbox Code Playgroud)

当我跑:

pip install scipy-0.15.1-cp33-none-win_amd64.whl
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

scipy-0.15.1-cp33-none-win_amd64.whl is not supported wheel on this platform
Run Code Online (Sandbox Code Playgroud)

我想知道问题是什么?

python pip

260
推荐指数
10
解决办法
37万
查看次数

在setuptools setup.py文件中引用installation_requires kwarg的requirements.txt

我有一个requirements.txt文件,我正在使用Travis-CI.看来愚蠢复制中都要求requirements.txtsetup.py,所以我希望到一个文件句柄传递给install_requires在kwarg setuptools.setup.

这可能吗?如果是这样,我该怎么做呢?

这是我的requirements.txt档案:

guessit>=0.5.2
tvdb_api>=1.8.2
hachoir-metadata>=1.3.3
hachoir-core>=1.3.3
hachoir-parser>=1.3.4
Run Code Online (Sandbox Code Playgroud)

python pip setuptools requirements.txt

255
推荐指数
13
解决办法
9万
查看次数

pip在哪里安装它的包?

我激活了一个安装了pip的virtualenv.我做到了

pip3 install Django==1.8
Run Code Online (Sandbox Code Playgroud)

和Django成功下载.现在,我想打开Django文件夹.文件夹位于何处?通常它会在"下载"中,但我不确定如果我在virtualenv中使用pip安装它会是什么.

python django pip virtualenv

253
推荐指数
9
解决办法
25万
查看次数

在代码中安装python模块

我需要在我的脚本中直接从PyPi安装一个包.也许有一些模块或distutils(distribute,pip等)功能,它允许我只是执行像pypi.install('requests')和请求将被安装到我的virtualenv.

python pip python-module pypi

249
推荐指数
9
解决办法
21万
查看次数

无法使用PIP和setup.py安装Python Cryptography包

当我尝试通过其中的任何一个或通过从他们的站点下载包并运行来安装Python 的Cryptography包时,我收到以下错误:pip install cryptographypython setup.py


D:\Anaconda\Scripts\pip-script.py run on 02/27/14 16:13:17
Downloading/unpacking cryptography
  Getting page https://pypi.python.org/simple/cryptography/
  URLs to search for versions for cryptography:
  * https://pypi.python.org/simple/cryptography/
  Analyzing links from page https://pypi.python.org/simple/cryptography/
    Skipping https://pypi.python.org/packages/cp26/c/cryptography/cryptography-0.2-cp26-none-win32.whl#md5=13e5c4b19520e7dc6f07c6502b3f74e2 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp26/c/cryptography/cryptography-0.2.1-cp26-none-win32.whl#md5=00e733648ee5cdb9e58876238b1328f8 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp27/c/cryptography/cryptography-0.2-cp27-none-win32.whl#md5=013ccafa6a5a3ea92c73f2c1c4879406 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp27/c/cryptography/cryptography-0.2.1-cp27-none-win32.whl#md5=127d6a5dc687250721f892d55720a06c (from https://pypi.python.org/simple/cryptography/) because it is not compatible …
Run Code Online (Sandbox Code Playgroud)

python cryptography pip

247
推荐指数
12
解决办法
26万
查看次数