mac安装pyspider碰到的问题

今天安装pyspider碰到一些问题,做下记录:
1.sudo pip install pyspider提示安装pycurl失败
2.sudo pip install pycurl提示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.’
3.下载pycurl源码python setup.py install提示依旧
4.pip uninstall pycurl
pip install –upgrade pip
export LDFLAGS=-L/usr/local/opt/openssl/lib
export CPPFLAGS=-I/usr/local/opt/openssl/include
export PYCURL_SSL_LIBRARY=openssl
pip install pycurl
提示找不到openssl/ssl.h
5./usr/local/openssl讲里面的include/openssl复制到/usr/local/include
提示如2
6.查阅pycurl官方文档,加上–with-ssl后成功安装
7.sudo pip install pyspider成功

评论