pip安装pycurl报错

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_24671941/article/details/84643096

pip install pycurl

报错提示如下:

Curl is configured to use SSL, but we have not been able to determine
which SSL backend it is using. Please see PycURL documentation for how
to specify the SSL backend manually.’

网上通用版解决方式

(env)$ pip uninstall pycurl
(env)$ export PYCURL_SSL_LIBRARY=openssl
(env)$ pip install pycurl

可能不能解决问题。

靠谱答案来源:https://stackoverflow.com/questions/51075738/install-pycurl-after-mac-update-to-high-sierra-ssl-error

(env)$ pip uninstall pycurl

(env)$ pip install --upgrade pip

(env)$ export LDFLAGS=-L/usr/local/opt/openssl/lib

(env)$ export CPPFLAGS=-I/usr/local/opt/openssl/include

(env)$ export PYCURL_SSL_LIBRARY=openssl

(env)$ pip install pycurl

安装成功。

猜你喜欢

转载自blog.csdn.net/qq_24671941/article/details/84643096