centos安装scrapy:
1、自行安装Python
3、安装lxml:
yum install python-lxml
4、安装OpenSSL:
yum install openssl-devel
5、
yum install libffi libffi-devel
6、
yum install python-setuptools
7、
yum install -y python-devel openssl-devel libxslt-devel libxml2-devel
8、
[root@localhost ~]# python Python 2.7.5 (default, Nov 20 2015, 02:00:19) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import lxml >>> import OpenSSL >>>
9、
pip install scrapy
10、安装成功:
root@localhost ~]# scrapy Scrapy 1.1.0 - no active project Usage: scrapy <command> [options] [args] .......
参考:ubuntu14.04安装Scrapy框架 by: C/C++程序员之家