Error SSL backend error when using OpenSSL

0 votes

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 compile-time ssl backend (none/other)

I read some documentation saying that "To fix this, you need to tell setup.py what SSL backend is used" although I am not sure how to do this since I installed pycurl using pip.

How can I specify the SSL backend when installing pycurl with pip?

Thanks

May 20, 2020 in Python by kartik
• 37,520 points
3,439 views

1 answer to this question.

0 votes

Hii @kartik,

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 solutions out there but this works perfectly for me on a virtualenv and pip installation.

Hope this Helpfull!!

answered May 20, 2020 by Niroj
• 82,880 points

Related Questions In Python

0 votes
1 answer

When I create and remove files rapidly on windows using python I get WindowsError (Error 5)

Here's the short answer: disable any antivirus or ...READ MORE

answered Aug 31, 2018 in Python by charlie_brown
• 7,720 points
1,899 views
0 votes
1 answer

Inconsistent Whitespace error occurrence when using Python doctest with newline characters

Hi. It's pretty simple actually. All you ...READ MORE

answered Feb 12, 2019 in Python by Nymeria
• 3,560 points
2,710 views
0 votes
1 answer

When i try to install os_sys i get an error when installing backend dependencies

pip install -U os-sys READ MORE

answered Oct 16, 2020 in Python by anonymous
3,907 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,397 views
0 votes
1 answer
0 votes
1 answer

Error: when install pylibmc using pip

Hello @kartik, It's in the libmemcached package. To ...READ MORE

answered May 20, 2020 in Python by Niroj
• 82,880 points
2,933 views
0 votes
1 answer

ValueError: malformed string when using ast.literal_eval

Hello Kartik, An updated version of the answer ...READ MORE

answered May 27, 2020 in Python by Niroj
• 82,880 points
26,140 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP