依次安装
sudo apt-get install build-essential; sudo apt-get install python-dev; sudo apt-get install libxml2-dev; sudo apt-get install libxslt1-dev; sudo apt-get install python-setuptools;
然后安装Scrapy:
sudo easy_install Scrapy;
不过我今天遇到了这样的问题:
解决方法:安装libffi:
yum install -y libffi-devel 或ubuntu中 apt-get install -y libffi-dev