mac安装pycurl

错误

pip install pycurl

command "python setup.py egg_info"  failed with error code 1 in ....

解决

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

参考
Installing PycURL on macOS High Sierra

你可能感兴趣的:(mac安装pycurl)