mac下安装pyspider出现错误如下:
Command “python setup.py egg_info” failed with error code 1 in /private/var/folders/......
紧接着我用了pip3 安装pycurl出现错误如下:
__main__.ConfigurationError: Curl is configured to use SSL, but we have not been able to determine which SSL backend it is using. Please see PycURL documentation for how to specify the SSL backend manually.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/......
最后我尝试了一些解决办法,下面这种成功安装了pycurl:
打开终端,依次输入以下命令行:
export PYCURL_SSL_LIBRARY=openssl
export LDFLAGS=-L/usr/local/opt/openssl/lib
export CPPFLAGS=-I/usr/local/opt/openssl/include
pip3 install pycurl
最后安装pyspider:
pip3 install pyspider
安装后输入pyspider all 看看能不能成功启动
还有就是如果你的python版本是3.7还会遇到关键字问题,至少我安装的时候pyspider没有修订它的代码,所以我又安装了python3.6,才成功启动pyspider