SSL backend error when using OpenSSL

前端 未结 26 2380
北恋
北恋 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:41

    With pip 7.1 you can put the following in your requirements file:

    pycurl==7.19.5.1 --global-option="--with-nss"
    

    Simply replace nss with the relevant ssl backend library.

    0 讨论(0)
  • 2020-11-30 23:43
    pip install -U pip
    
    if [ "$(curl --version | grep NSS 2>/dev/null)" ]; then
        pip install --compile --install-option="--with-nss" pycurl
    else
        pip install --compile --install-option="--with-openssl" pycurl
    fi
    
    0 讨论(0)
提交回复
热议问题