安装爬虫scrapy

使用easy_install安装scrapy,报错

error: Setup script exited with error: command 'gcc' failed with exit status 1

查看报错信息发现

尝试pip install lxml==3.3.0

继续easy_install Scrapy

成功安装后执行scrapy startproject tutorial

报错AttributeError: 'FFILibrary' object has no attribute 'SSL_OP_NO_TICKET'

查询谷歌后发现    低版本openssl未定义SSL_OP_NO_TICKET;

使用https://github.com/pyca/pyopenssl/blob/master/OpenSSL/SSL.py#L47的覆盖本地SSL.py文件。

posted @ 2015-02-11 16:00  Beats  阅读(240)  评论(0编辑  收藏  举报