A-A+

centos安装scrapy

2016年06月06日 运维 暂无评论 阅读 76 次

centos安装scrapy:

1、自行安装Python

2、centos安装python-pip

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
yum install gcc -y
pip install pyopenssl

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++程序员之家

标签:

给我留言