Mac 安装 pycurl 报错解决办法

2018-09-10  本文已影响0人  是九歌呀

Mac 安装 pycurl 报错解决办法

Mac端通过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.如图

image.png

解决办法

将openSSL配置到环境变量

export LDFLAGS=-L/usr/local/opt/openssl/lib
export CPPFLAGS=-I/usr/local/opt/openssl/include
export PYCURL_SSL_LIBRARY=openssl

配置完毕后重新安装即可成功

上一篇 下一篇

猜你喜欢

热点阅读