当前位置:  开发笔记 > 编程语言 > 正文

安装elastic-search-curator时的Python pip包RequestsDependencyWarning

如何解决《安装elastic-search-curator时的Pythonpip包RequestsDependencyWarning》经验,为你挑选了1个好方法。

我通过以下命令安装了弹性搜索策展人.

sudo pip install -U elasticsearch-curator

这一切都安装好了.

但是现在当我做以下事情时

curator_cli --version

我得到以下依赖警告.

 /usr/local/lib/python2.7/dist-packages/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
  warnings.warn(warning, RequestsDependencyWarning)
curator_cli, version 5.5.4

如何修复警告或隐藏警告?



1> Robbo_UK..:

所以我花了很多东西让这个工作.

首先,我根据Mufeeds的建议升级了cyptography

sudo pip install --upgrade cryptography

每次我做的时候都会给我一个新的错误 pip

Traceback (most recent call last):
  File "/usr/local/bin/pip", line 7, in 
    from pip._internal import main
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/__init__.py", line 42, in 
    from pip._internal import cmdoptions
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/cmdoptions.py", line 16, in 
    from pip._internal.index import (
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/index.py", line 15, in 
    from pip._vendor import html5lib, requests, six
  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py", line 86, in 
    from pip._vendor.urllib3.contrib import pyopenssl
  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 46, in 
    import OpenSSL.SSL
  File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in 
    from OpenSSL import rand, crypto, SSL
  File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in 
    SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

通过重新绑定PyOpenSSL解决了这个问题

sudo python -m easy_install --upgrade pyOpenSSL

策展人现在按预期工作,没有警告

curator_cli --version
> curator_cli, version 5.5.4

推荐阅读
殉情放开那只小兔子
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有