在安装pyspider的时候出现
ImportError: pycurl: libcurl link-time ssl backend (openssl) is different from compile-time ssl back
因为pycurl 的ssl导致的错误
pyspider的使用需要用到pycurl和lxml
所以这里需要解决pycurl的错误,将pycurl卸掉重新装,指定ssl
pip uninstall pycurl
export PYCURL_SSL_LIBRARY=openssl
export LDFLAGS=-L/usr/local/opt/openssl/lib;export CPPFLAGS=-I/usr/local/opt/openssl/include;pip install pycurl --compile --no-cache-dir
pyspider可以使用

网友评论