SSL backend error when using OpenSSL

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

    For python 2.7

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

    For python 3.5 also install the next:

    sudo apt-get install python3.5-dev
    

    Download the latest pycurl-7.43.0.tar.gz (md5) Source from pypi https://pypi.python.org/pypi/pycurl/7.43.0#downloads and run the next command:

    python setup.py --with-openssl install
    

    Also you can do it into python environment:

    (test_env)user@pc:~/Downloads/pycurl-7.43.0$ python setup.py --with-openssl install
    

提交回复
热议问题