Mac 安装 pycurl 报错解决办法

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.如图

Mac 安装 pycurl 报错解决办法_第1张图片
image.png

解决办法

将openSSL配置到环境变量

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

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

你可能感兴趣的:(Mac 安装 pycurl 报错解决办法)