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
This worked for me:
pip install --compile --install-option="--with-openssl" pycurl