刚入手mac,我的系统是13.13.3 ,使用的是python2.7,项目需要使用pycurl,安装后运行代码出现这个报错,
ImportError: pycurl: libcurl link-time ssl backend (openssl) is different from compile-time ssl backend (none/other)
WTF?这是个什么错误,查了好多,尝试无果,最后终于发现是和mac版本有关,借鉴别人的做法,终于解决了
brew install curl --with-openssl
pip uninstall pycurl
pip install --no-cache-dir --global-option=build_ext --global-option="-L/usr/local/opt/openssl/lib" --global-option="-I/usr/local/opt/openssl/include" pycurl