1

我在这里关注 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)
4

0 回答 0