centos安装scrapy
centos安装scrapy:
1、自行安装Python
3、安装lxml:
1 |
yum install python-lxml |
4、安装OpenSSL:
1 |
yum install openssl-devel |
5、
1 |
yum install libffi libffi-devel |
6、
1 |
yum install python-setuptools |
7、
1 2 3 |
yum install -y python-devel openssl-devel libxslt-devel libxml2-devel yum install gcc -y pip install pyopenssl |
8、
1 2 3 4 5 6 7 |
[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、
1 |
pip install scrapy |
10、安装成功:
1 2 3 4 5 6 |
root@localhost ~]# scrapy Scrapy 1.1.0 - no active project Usage: scrapy <command> [options] [args] ....... |
参考:ubuntu14.04安装Scrapy框架 by: C/C++程序员之家