1. 程式人生 > >Installing PycURL on macOS High Sierra 10.14

Installing PycURL on macOS High Sierra 10.14

常遇到的錯誤:

    __main__.ConfigurationError: 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.

正確的安裝方式:

sudo PYCURL_SSL_LIBRARY=openssl LDFLAGS="-L/usr/local/opt/openssl/lib" CPPFLAGS="-I/usr/local/opt/openssl/include" pip install --no-cache-dir pycurl