Scrapy是python下一个著名的爬虫,目前最新版为0.24。
这是他的帮助文档->Scrapy 0.24 文档
其中选择器篇需要好好研究!
帮助文档里的安装指南写得很宽泛,所以安装出错是在正常不过的事了。(再者说,安装出错确实不是Scrapy的错嘛)
So here is the doc to help you with installing Scrapy.
First of all, before installing, please make sure U have already installed these libs or apps below:
If not, commands below may help:
on Redhat/Centos:
yum install python-devel libxml2-devel libxslt-devel libffi-devel openssl-devel bzip2-devel
on Debian/Ubuntu:
apt-get install python-dev libxml2-dev libxslt1-dev libffi-dev libssl-dev libbz2-dev
If your python version is less than 2.7, this article -> upgrade python may help U in upgrading python.
I have summarized some errors when installing scrapy and hope they can be used as a reference for you.
This usually happens when you have compiled python and use pip install Scrapy
command.
The reason is you don't have bzip2 lib installed:
on Redhat/Centos:
yum install bzip2-devel
on Debian/Ubuntu:
apt-get install libbz2-dev
After you have installed the bzip2 package,you have to compile python again to make bzip module work.
Finally,use pip install --upgrade scrapy
to finish the installation.
The cause is u didn't install python-dev
on Redhat/Centos:
yum install python-devel
on Debian/Ubuntu:
apt-get install python-dev
Finally,use pip install scrapy
or easy_install scrapy
to finish the installation.
Haha,that's because you already have installed the package!
sudo pip install service_identity
That's all for now.Thank u for viewing.