SSL backend error when using OpenSSL

前端 未结 26 2595
北恋
北恋 2020-11-30 22:38

I was trying to install pycurl in a virtualenv using pip and I got this error

ImportError: pycurl: libcurl link-time ssl backend (openssl) is different from         


        
26条回答
  •  感情败类
    2020-11-30 23:17

    This worked for me:

    pip uninstall pycurl
    export PYCURL_SSL_LIBRARY=nss
    easy_install pycurl
    

    None of this worked for me (note the difference is simply easy_install vs pip):

    pip uninstall pycurl
    export PYCURL_SSL_LIBRARY=[nss|openssl|ssl|gnutls]
    pip install pycurl
    #xor
    curl -O https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.3.1.tar.gz
    #...
    python setup.py --with-[nss|openssl|ssl|gnutls] install
    

提交回复
热议问题