mac安装pyspider和pycurl踩过的坑

使用pip3 install pyspider提示错误:

"python setup.py egg_info" failed with error code 1 in /private/var/folders/....../pycurl

意思就是没有pycurl

然后用pip3 install pycurl提示错误

"python setup.py egg_info" failed with error code 1 in /private/var/folders/....../pycurl

找了好久,找到大神的安装方式:

pip3 install pycurl==7.43.0.1 --global-option=build_ext --global-option="-L/usr/local/opt/openssl/lib" --global-option="-I/usr/local/opt/openssl/include"

你可能感兴趣的:(爬虫)