One - One Code All

Blog Content

mac安装pycurl报错Curl is configured to use SSL

Python Linux-Mac   2018-05-20 12:51:12

使用安装第三方插件的方式安装pycurl:pip3 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.'


解决方案:
$ export LDFLAGS=-L/usr/local/opt/openssl/lib
$ export CPPFLAGS=-I/usr/local/opt/openssl/include
$ export PYCURL_SSL_LIBRARY=openssl
$ pip3 install pycurl


上一篇:Go实现的科学计算库 Gosl
下一篇:python3读取redis返回数据带有b的问题

The minute you think of giving up, think of the reason why you held on so long.