错误:无法找到Requirement.parse的合适分布(' pyparsing> = 1.5.5')

时间:2018-01-21 16:42:53

标签: python-2.7 ubuntu-16.04 pyparsing

我想在我的Ubuntu(16.04)上安装魅力加密库,python版本是2.7.12。虽然我在执行make install时遇到了这样的错误。

No local packages or download links found for pyparsing>=1.5.5
error: Could not find suitable distribution for
Requirement.parse('pyparsing>=1.5.5')
Makefile:97: recipe for target 'install' failed

这是执行make install命令时的输出信息。

removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing Charm_Crypto-0.42-py2.7-linux-x86_64.egg
removing '/usr/local/lib/python2.7/dist-packages/Charm_Crypto-0.42-py2.7-linux-x86_64.egg' (and everything under it)
creating /usr/local/lib/python2.7/dist-packages/Charm_Crypto-0.42-py2.7-linux-x86_64.egg
Extracting Charm_Crypto-0.42-py2.7-linux-x86_64.egg to /usr/local/lib/python2.7/dist-packages
Charm-Crypto 0.42 is already the active version in easy-install.pth

Installed /usr/local/lib/python2.7/dist-packages/Charm_Crypto-0.42-py2.7-linux-x86_64.egg
Processing dependencies for Charm-Crypto==0.42
Searching for pyparsing>=1.5.5
Reading http://pypi.python.org/simple/pyparsing/
Couldn't find index page for 'pyparsing' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for pyparsing>=1.5.5
error: Could not find suitable distribution for Requirement.parse('pyparsing>=1.5.5')
Makefile:97: recipe for target 'install' failed

我试图修复此错误并谷歌一些解决方案,有人说我应该安装pip和python setuptools然后安装旧版本的pyparsing(1.5.7)。但这也会出现另一个关于pyparsing的错误。我在文件夹python2.7/dist-packages下显示文件如下。

root@rocky-VirtualBox:/usr/local/lib/python2.7/dist-packages# ls
Charm_Crypto-0.42-py2.7-linux-x86_64.egg  pyparsing-1.5.7.dist-info
distribute-0.6.24-py2.7.egg               pyparsing.py
easy-install.pth                          pyparsing.pyc
easy_install.py                           setuptools
easy_install.pyc                          setuptools-0.6c11-py2.7.egg-info
pip                                       setuptools-38.4.0.dist-info
pip-9.0.1.dist-info                       setuptools.pth
pkg_resources

已经有一些名为pyparsing-1.5.7.dist-infopyparsing.py的文件,但为什么终端仍然声称"找不到' pyparsing'&#的索引页面? 34 ;?如果你以前遇到这个错误,希望你能帮助我。

0 个答案:

没有答案