安装爬虫scrapy

使用easy_install安装scrapy,报错

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

查看报错信息发现安装爬虫scrapy_第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文件。

你可能感兴趣的:(scrapy)