for most people
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.
Some people have a different error message complaining about nss
instead of openssl
ImportError: pycurl: libcurl link-time ssl backend (nss)
(the key part is nss
) so you have to do something different for this error message:
pip uninstall pycurl
pip install --no-cache-dir --compile --compile-options="--with-nss" pycurl
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…