Mac下python开发需要pycurl,但是安装过程出现问题。几经折腾终于成功了。具体步骤如下,记录一下以免忘记。Step1brewinstallopensslStep2pip3uninstallpycurlStep3PYCURL_SSL_LIBRARY=opensslLDFLAGS="-L/usr/local/opt/openssl/lib"CPPFLAGS="-I/usr/local/opt/openssl/include"pip3install--no-cache-目录pycurl

Mac下python开发需要pycurl,但是安装过程出现问题。几经折腾终于成功了。具体步骤如下,记录一下以免忘记。Step1brewinstallopensslStep2pip3uninstallpycurlStep3PYCURL_SSL_LIBRARY=opensslLDFLAGS="-L/usr/local/opt/openssl/lib"CPPFLAGS="-I/usr/local/opt/openssl/include"pip3install--no-cache-目录pycurl