这是他的帮助文档->Scrapy 0.24 文档
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:
- python version >= 2.7
- python-devel package
If not, commands below may help:
yum install python-devel libxml2-devel libxslt-devel libffi-devel openssl-devel bzip2-devel
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.
CompressionError: bz2 module is not available
This usually happens when you have compiled python and use
pip install Scrapy command.
The reason is you don't have bzip2 lib installed:
yum install bzip2-devel
apt-get install libbz2-dev
After you have installed the bzip2 package,you have to compile python again to make bzip module work.
pip install --upgrade scrapy to finish the installation.
Setup script exited with error: command 'gcc' failed with exit status 1
The cause is u didn't install python-dev
yum install python-devel
apt-get install python-dev
pip install scrapy or
easy_install scrapy to finish the installation.
error: Not a recognized archive type: /tmp/easy_install-dayrGH/Twisted-14.0.0.tar.bz2
Haha,that's because you already have installed the package!
UserWarning: You do not have the service_identity module installed.
sudo pip install service_identity
That's all for now.Thank u for viewing.