安装Python scrapy

基本上是follow scrapy的requirement先安装pip 和 setuptools,然后再安装scrapy

1. 安装python 3.0.0 以上版本
mac OX 的 default python版本是2.7.4。据说3.0以后自带pip和easy install。但是根本就不是这样=..=。安装3.0后还是需要手动安装pip和setuptools

http://www.macobserver.com/tmo/article/how-to-upgrade-your-mac-to-python-3
follow这个教程下载python3然后安装。

2. 安装setuptools。安装这个是为了要用easy install来安装pip
使用以下命令行安装setuptools:
curl https://bootstrap.pypa.io/ez_setup.py -o - | python3

3. 安装pip
easy_install pip

4. 安装scrapy
pip install scrapy

你可能感兴趣的:(python)