Python 当pip中的库链接断开时,如何在virtualenv中安装库
所以我想安装OpenERP7.0.406,它需要pychart,并且在pip中唯一的链接似乎已断开Python 当pip中的库链接断开时,如何在virtualenv中安装库,python,pip,openerp,virtualenv,pychart,Python,Pip,Openerp,Virtualenv,Pychart,所以我想安装OpenERP7.0.406,它需要pychart,并且在pip中唯一的链接似乎已断开 No distributions at all found for pychart in ./env/lib/python2.7/site-packages (from openerp-core==7.0.406->-r picdyn_openerp_conf/requirements (line 11)) 在日志中,我们有: URLs to search for versions for
No distributions at all found for pychart in ./env/lib/python2.7/site-packages (from openerp-core==7.0.406->-r picdyn_openerp_conf/requirements (line 11))
在日志中,我们有:
URLs to search for versions for pychart in ./env/lib/python2.7/site-packages (from openerp-core==7.0.406->-r picdyn_openerp_conf/requirements (line 15)):
* https://pypi.python.org/simple/pychart/
Analyzing links from page https://pypi.python.org/simple/pychart/
Skipping link http://www.hpl.hp.com/personal/Yasushi_Saito/pychart (from https://pypi.python.org/simple/pychart/); not a file
Not searching http://www.hpl.hp.com/personal/Yasushi_Saito/pychart (from https://pypi.python.org/simple/pychart/) for files because external urls are disallowed.
Could not find any downloads that satisfy the requirement pychart in ./env/lib/python2.7/site-packages (from openerp-core==7.0.406->-r picdyn_openerp_conf/requirements (line 15))
当您检查uri时,它返回一个404notfound。所以我从其他地方下载了pychart(),并尝试安装它(在我的virtualenv中)
看起来,它并没有真正起作用,因为当我再次尝试从我的需求文件更新时,pip仍然尝试访问“”并显示相同的错误消息,openerp无法安装
但当我尝试重新安装pychart时,它显示pychart实际上已安装:
pip install PyChart-1.39
Requirement already satisfied (use --upgrade to upgrade): PyChart==1.39 from file:///home/pierre/PyChart-1.39 in ./env/lib/python2.7/site-packages
我做错什么了吗?是否安装了pychart或openerp的依赖性是否存在问题?PyChart与用于pip的PyChart不同吗?由于某种原因,PyChart不在pypi中,这是正确的。要安装它,请运行
pip install http://download.gna.org/pychart/PyChart-1.39.tar.gz
如果您想清理您首先使用的内容,请使用pip卸载如果您使用
--允许外部
和--允许未验证的
,以便从外部源安装,它会起作用
但是没有——允许所有未验证的,所以我有几个问题(pychart
,pyxml
,openerpcore
),我一个接一个地添加了它们。我仍在寻找一种方法,允许多个未经验证的。。。(——允许未经验证的a b
,“a b”
,或a、b
不工作)
但正如Adrian Merrall所说,在requirements.txt中添加完整URL比在PyChart==1.39
中添加完整URL要干净得多:
http://download.gna.org/pychart/PyChart-1.39.tar.gz
因为您甚至不需要--允许外部
或--允许未验证的
选项,您也不需要以不同的方式对待Pychart。您可以尝试,在requirements.txt
中,将无效的Pychart
替换为Python图表
:
Python图表==1.39
它适合我。我试过了,似乎安装了Pychart。因为pip冻结会给出“PyChart==1.39”。我仍然有同样的错误。我重新阅读了你的帖子“当我再次尝试从我的需求文件更新时”。您应该在需求文件中将其定义为“”,而不是“PyChart==1.39”。仔细考虑stackoverflow的格式,如果没有“http://”
http://download.gna.org/pychart/PyChart-1.39.tar.gz