JSParser
JSParser copied to clipboard
ImportError: pycurl: libcurl link-time ssl backend (openssl) is different from compile-time ssl backend (none/other)
Any help?
$ python3 handler.py
Traceback (most recent call last):
File "handler.py", line 5, in
Assuming you're on macOS (High Sierra) check the following link - worked for me.
Essentially:
$ brew reinstall openssl
$ pip uninstall pycurl
$ pip install --install-option="--with-openssl" --install-option="--openssl-dir=/usr/local/opt/openssl" pycurl
I'm assuming you've ran setup.py before - if you do
$ python handler.py
Should work now.
Hi @Regala I can't uninsatall pycurl on my device I'm getting the error
Cannot uninstall 'pycurl'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Hi @Regala I can't uninsatall pycurl on my device I'm getting the error
Cannot uninstall 'pycurl'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Use
sudo pip uninstall pycurl
For those who can't fix this on MacOS:
brew install pipenv
pipenv shell
export CPPFLAGS=-I/usr/local/opt/openssl/include
export LDFLAGS=-L/usr/local/opt/openssl/lib
pip install pycurl --global-option="--with-openssl"
Hi @sawzeeyy I'm pretty sure

Wow @sawzeeyy My hard change finally Successfully
-
remove existing pycurl installation pip3 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 pip3 install pycurl --no-cache-dir
next question😂

if you use “pip install pycurl" in your anaconda virtulenvironment this problem may occur,i use "conda install pycurl",then this problem is solved