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" (source) 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
The method to fix the pycurl after Mac OS High Sierra update:
Reinstall the curl libraries to use OpenSSL instead of SecureTransport
Install pycurl with correct build-time environment and paths
Following worked for me with Python3.6
MacOS High-Sierra
CentOS 7
With OSX 10.13, a brew-installed openSSL, and virtualenv, I was successful with:
After reading their INSTALLATION file, I was able to solve my problem by setting an environment variable and did a reinstall
remove existing
pycurl
installationpip uninstall pycurl
export variable with your link-time ssl backend (which is openssl above)
export PYCURL_SSL_LIBRARY=openssl
then, re-install
pycurl
pip install pycurl
There could be other solution out there but this works perfectly for me on a
virtualenv
andpip
installation.You can download the tar.gz file from here. Then extract it into a folder. You'll find a setup.py file there. Run the command over there that the site mentioned. For example:
FYI: I tried to install pycurl at my windows, but I couldn't. But did it on my linux.