python setup.py找不到所需的软件包

时间:2018-10-24 21:04:49

标签: python python-2.7 pip elastalert gccfilter

我在这里遵循elastAlert的设置:https://elastalert.readthedocs.io/en/latest/running_elastalert.html

运行命令python setup.py install --user时收到错误error: Could not find suitable distribution for Requirement.parse('cffi>=1.11.5')

因此,我尝试通过运行pip install cffi --user来解决此问题 当我运行此命令时,我得到输出

Requirement already satisfied: cffi in /usr/local/lib/python2.7/site-packages (1.11.5)
Requirement already satisfied: pycparser in /usr/local/lib/python2.7/site-packages (from cffi) (2.19)

但是当我重新运行python setup.py install --user时,仍然出现相同的错误:

Installing elastalert-rule-from-kibana script to /Users/Colin/Library/Python/2.7/bin
Installing elastalert-test-rule script to /Users/Colin/Library/Python/2.7/bin

Installed /Users/Colin/Library/Python/2.7/lib/python/site-packages/elastalert-0.1.36-py2.7.egg
Processing dependencies for elastalert==0.1.36
Searching for cffi>=1.11.5
Reading https://pypi.python.org/simple/cffi/
Download error on https://pypi.python.org/simple/cffi/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found!
Couldn't find index page for 'cffi' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found!
No local packages or download links found for cffi>=1.11.5
error: Could not find suitable distribution for Requirement.parse('cffi>=1.11.5')

为什么找不到这个包?

python --version = Python 2.7.10
pip --version = pip 18.1 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)

0 个答案:

没有答案