Mac下安装pycurl

Mac下python开发需要用到pycurl,但安装过程出现了问题。经过一番折腾终于成功。具体步骤如下,记录一下,以免忘记。

Step 1

brew install openssl

Step 2

pip3 uninstall pycurl

Step 3

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

你可能感兴趣的:(python)