Python “pip install ” is failing with AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

后端 未结 4 1209
心在旅途
心在旅途 2020-12-12 16:33

$ sudo pip install --upgrade pyOpenSSL

Traceback (most recent call last):
  File \"/usr/local/bin/pip\", line 9, in 
load_entry_point(\'pip==8.         


        
4条回答
  •  心在旅途
    2020-12-12 16:55

    I ran into this issue as well. The solution proposed to run pip doesn't work because pip is broken too! I found this solved it for me:

    sudo python -m easy_install --upgrade pyOpenSSL
    

    This installed version 17.3.0 which was an upgrade to the (stock python-openssl on xenial) version ?0.15.1?. Note the massive change in version it could be they dropped the leading 0. in later versions.

    Anyway, after that, pip and ansible started to work again.

提交回复
热议问题