SSL backend error when using OpenSSL

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

    The method to fix the pycurl after Mac OS High Sierra update:

    1. Reinstall the curl libraries to use OpenSSL instead of SecureTransport

      brew install curl --with-openssl
      
    2. Install pycurl with correct build-time environment and paths

      export PYCURL_SSL_LIBRARY=openssl
      pip uninstall pycurl 
      pip install --no-cache-dir --global-option=build_ext --global-option="-L/usr/local/opt/openssl/lib" --global-option="-I/usr/local/opt/openssl/include" --user pycurl
      

提交回复
热议问题