Ubuntu 14.04 64bit上安装Scrapy

按照官方文档的说明,安装Scrapy 需要以下程序或者库:
(1)Python 2.7
(2)lxml. Most linux distributions ships PRepackaged versions of lxml. Otherwise refer to http://lxml.de/installation.html
(3)OpenSSL. This comes preinstalled in all Operating systems except Windows (see Platform specific installation notes)
(4)pip or easy_install Python package managers
我们安装的Ubuntu14.04系统都已经自带了前面3个,Python的版本为2.7.6。为了验证是否有安装,我们来查看一下。
打开终端,执行如下命令python, 接下来就是import lxml, import OpenSSL。如下图。

如果import没有报错,说明系统已经自带了。为保险起见,运行
sudo apt-get install python-dev
再执行:
sudo apt-get install libevent-dev
安装pip
sudo apt-get install python-pip
安装Scrapy, 执行:
sudo pip install Scrapy

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值