所以我想安装openerp 7.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 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时,它返回一个404未找到。所以我从其他地方下载了pychart(http://download.gna.org/pychart/),并尝试安装它(在我的virtualenv中)。
pip install PyChart-1.39.tar.gz
Installing collected packages: PyChart
Running setup.py install for PyChart
Successfully installed PyChart
看起来,它并没有真正工作,因为当我再次尝试从我的需求文件中更新时,pip仍然试图访问带有相同错误消息的“http://www.hpl.hp.com/personal/Yasushi_Saito/pychart”,而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
中将无效的Python-Chart
替换为requirements.txt
:
蟒蛇图==1.39
对我有用。