Scrapy 安装指南

本指南上依据Scrapy官网的安装指南翻译,本人使用Ubuntu和Mac均配置成功过,貌似Windows比较麻烦,还好网上有很多教程,使用Windows只好搜索一下解决方案了。

安装前准备

在正式安装之前确保你的系统已经安装了如下组件:

安装Scrapy

你可以使用easy_install或者pip命令来安装Scrapy

使用pip命令安装:

<span class="pln" style="color: #000000;">pip install </span><span class="typ" style="color: #660066;">Scrapy</span>

使用easy_install命令安装:

<span class="pln" style="color: #000000;">easy_install </span><span class="typ" style="color: #660066;">Scrapy</span>

如果在安装过程中报错:

** make sure the development packages of libxml2 and libxslt are installed **
则通过如下命令安装libxml2和libxslt:

<span class="pln" style="color: #000000;">sudo apt</span><span class="pun" style="color: #666600;">-</span><span class="kwd" style="color: #000088;">get</span><span class="pln" style="color: #000000;"> install libxml2</span><span class="pun" style="color: #666600;">-</span><span class="pln" style="color: #000000;">dev
sudo apt</span><span class="pun" style="color: #666600;">-</span><span class="kwd" style="color: #000088;">get</span><span class="pln" style="color: #000000;"> install libxslt1</span><span class="pun" style="color: #666600;">-</span><span class="pln" style="color: #000000;">dev</span>

不同平台安装注意事项

Windows

可以参考一下这个教程吧,官方文档也解决不了问题

http://blog.csdn.net/playstudy/article/details/17296473

Ubuntu 9.10 以及更高版本

Don’t use the python-scrapy package provided by Ubuntu, they are typically too old and slow to catch up with latest Scrapy.

Instead, use the official Ubuntu Packages, which already solve all dependencies for you and are continuously updated with the latest bug fixes.

转载自:coding husky

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值