采用官方网站提供的安装方式,首先要保证系统已安装pip。
Installing Scrapy
You can install Scrapy using easy_install or pip (which is the canonical way to distribute and install Python packages).
Note
Check first.
To install using pip:
To install using easy_install:
我采用的是pip方式,安装过程出现问题:
问题:ERROR: /bin/sh: xslt-config: command not found
解决参考:http://blog.csdn.net/azhao_dn/article/details/7501432
问题: twisted/runner/portmap.c:10:20: error: Python.h: No such file or directory
解决参考:yum install python-devel