pycurl mac 安裝報錯Curl is configured to use SSL,


1、使用安裝第三方插件的方式安裝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.'

 

 

2、網上通用版解決方式

pip uninstall pycurl
export PYCURL_SSL_LIBRARY=openssl
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


 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM