草庐IT

Pip换源

全部标签

python - 没有下载所有依赖项 "pip download"

我正在尝试设置一个本地目录,其中包含可在没有互联网连接的机器上重复安装的包,但我遇到了一些包的问题。我先用下载包pipdownload-rrequirements.txt-dmy_packages--no-binary:all:然后我尝试安装它们pipinstall-rrequirements.txt--no-index-fmy_packages我在安装时遇到问题的软件包之一是elasticsearch-dsl==6.1.0:pipinstall-rrequirements--no-index-fmy_packagesLookinginlinks:my_packagesCollecti

python - Heroku ---> 安装 pip 远程 : AttributeError: module 'pip._vendor.requests' has no attribute 'Session'

一个Python3.6Django==11应用程序正在部署,并且代码会定期推送到昨天。现在我有错误:remote:AttributeError:module'pip._vendor.requests'hasnoattribute'Session'整个轨迹:Countingobjects:3,done.Deltacompressionusingupto4threads.Compressingobjects:100%(2/2),done.Writingobjects:100%(3/3),273bytes|0bytes/s,done.Total3(delta1),reused0(delta0

python - pip 看不到设置工具

我正在从python2迁移到python3。我用python3-mvenvpy3创建了一个virtualenv并尝试pipinstall-rrequirements.txt但它说Collectingmock==1.0.1(from-rrequirements.txt(line8))Usingcachedmock-1.0.1.tar.gzsetuptoolsmustbeinstalledtoinstallfromasourcedistribution我检查了我的virtualenv,它确实有设置工具:(py3)1111:d31111$lspy3/lib/python3.4/site-pa

python - Mac 操作系统, pip : specify compiler for packages containing C libraries

我在使用pip使用默认的clang编译器编译mapscript(是来自pypi的包含C代码的包)时遇到了一些问题。这是我的尝试:-$sudopipinstallmapscriptPassword:Downloading/unpackingmapscriptRunningsetup.pyegg_infoforpackagemapscriptRequirementalreadysatisfied(use--upgradetoupgrade):distributein/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib

python - 使用下载缓存将 PIP 包安装到 Virtualenv

使用缓存包将pip包安装到virtualenv的正确方法是什么?我试过设置--timeout=360和--use-mirrors,但是pypi的性能太不稳定了,它经常挂起或断开连接,使部署变得很麻烦。因此,我的计划是使用--download-cache选项来预下载所有软件包存档(但不安装它们),例如:pipinstall--upgrade--timeout=120--use-mirrors--no-install--download-cache/usr/local/pip/cache-rpip-requirements.txt然后在安装到virtualenv期间指定此缓存位置,例如:v

python - Pip 突然使用了错误版本的 Python

在osx上使用pip有一个奇怪的问题。据我所知(快速浏览一下我的.bash_history似乎可以确认)我最近没有对我的配置进行任何更改。las,pip命令似乎突然使用了与以前不同的python版本。到目前为止,我一直在使用命令pip来管理我的python2库,并使用pip3来管理python3库。突然间,任何运行pipinstall的尝试都会失败,并出现错误,例如打印语句周围缺少括号。这是我试图找出问题的几个命令的结果:whichpip>/usr/local/bin/pipwhichpip3>/usr/local/bin/pip3whichpython>/usr/local/bin/

python - 如何抑制pip升级警告?

我的pip版本已关闭——每个pip命令都在说:Youareusingpipversion6.0.8,howeverversion8.1.1isavailable.Youshouldconsiderupgradingviathe'pipinstall--upgradepip'command.我不喜欢这里给出的答案:HowcanIgetridofthiswarningtoupgradefrompip?因为他们都想让pip与RH版本不同步。所以我尝试使用这个VagrantFile进行干净的系统安装:Vagrant.configure("2")do|config|config.ssh.user

python - Virtualenv OSError - setuptools pip wheel 失败,错误代码为 1

尝试使用virtualenv15.0.2设置虚拟环境时收到以下错误消息,但收到OSErrorsetuptoolspipwheelfailedwitherrorcode1。Newpythonexecutablein/Users/nathmorissette/projects/tutorial/venv/bin/pythonInstallingsetuptools,pip,wheel...Completeoutputfromcommand/Users/nathmorissett...rial/venv/bin/python-setuptoolspipwheel:Traceback(most

python - 无法使用 CNTLM 连接到 pip

我正在尝试在需要身份验证的代理服务器后面使用Pip。我已经安装了cntlm并填写了散列密码。当我运行这个时:cntlm-ccntlm.ini-I-Mhttp://www.google.co.uk我输入我的密码,然后得到这个结果:Configprofile1/4...Authnotrequired(HTTPcode:200)Configprofile2/4...Authnotrequired(HTTPcode:200)Configprofile3/4...Authnotrequired(HTTPcode:200)Configprofile4/4...Authnotrequired(HTT

python - python 的新 'pip wheel' 是否支持为 tests_requires 中列出的依赖项构建轮子?

我使用setuptools'tests_require'来指定测试我的包所需的依赖项。tests_require-http://pythonhosted.org/distribute/setuptools.html#new-and-changed-setup-keywords我已经开始使用wheelpackaginghttp://wheel.readthedocs.org/en/latest/并为我当前的包及其所有依赖项构建一个wheels目录。pipwheel--wheel-dir=/tmp/wheelhouse.不过,我还想为任何包tests_require中列出的所有包构建轮子。