SSL backend error when using OpenSSL

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

    After reading their INSTALLATION file, I was able to solve my problem by setting an environment variable and did a reinstall

    • remove existing pycurl installation

      pip uninstall pycurl

    • export variable with your link-time ssl backend (which is openssl above)

      export PYCURL_SSL_LIBRARY=openssl

    • then, re-install pycurl with no cache

      pip install pycurl --no-cache-dir

    There could be other solution out there but this works perfectly for me on a virtualenv and pip installation.

提交回复
热议问题