easy_install PyOpenSSL error

前端 未结 9 1836
时光取名叫无心
时光取名叫无心 2020-12-09 03:38

Any idea about what cause the error below ?

I use Linux centos with openssl-devel.i386 0.9.8e-12.el5_5.7

$ easy_install PyOpenSSL
Searching for PyOpe         


        
相关标签:
9条回答
  • 2020-12-09 04:14

    pyOpenSSL 0.13 introduced support for the (S)erver (N)ame (I)ndication TLS extension. This extension allows clients to tell the server what hostname they expect to be talking to, allowing the server to select a suitable certificate to present.

    Support for SNI was introduced in OpenSSL 0.9.8f. Thus, pyOpenSSL 0.13 will build with OpenSSL 0.9.8f or later, but not OpenSSL 0.9.8e or earlier, where the APIs it expects to be wrapping do not exist.

    Perhaps a newer version of pyOpenSSL will make these bindings optional, restoring support for OpenSSL 0.9.8e and earlier. However, similarly, a newer version of OpenSSL will also work with pyOpenSSL 0.13.

    The pyOpenSSL project issues pre-releases. Widespread testing of pre-releases can help avoid cases like this one. I recommend that anyone relying on pyOpenSSL subscribe to the (very low traffic) pyOpenSSL user list (or on SourceForge) and do what testing you can when a pre-release comes out, before the release is finalized.

    0 讨论(0)
  • 2020-12-09 04:22

    Not exactly what is asked, but in Ubuntu 12.04 it can be installed with:

    sudo apt-get install python-openssl
    
    0 讨论(0)
  • 2020-12-09 04:25

    I ran into this while trying to install Scrapy. For me, Thanasis' answer didn't work. After some more Google and randomly installing things

    yum install python-devel
    

    allowed the Scrapy install to run for me (CentOS release 6.3 (Final))

    0 讨论(0)
  • 2020-12-09 04:28

    Try to install:

    sudo apt-get install -y python-dev libssl-dev libffi-dev

    0 讨论(0)
  • 2020-12-09 04:29

    In order to install it under virtualenv, you should first install the required packages. On ubuntu:

    sudo apt-get install python-dev libffi-dev libssl-dev
    

    Then you can just type:

    pip install pyopenssl
    
    0 讨论(0)
  • 2020-12-09 04:30

    For me I had to install the openssl-devel libs:

    yum install openssl-devel
    

    Was trying to install the cyclone/tornado/twisted python evented lib.

    0 讨论(0)
提交回复
热议问题