Install Scrapy

安装 python

1
$ sudo apt-get install python2.7

安装 setuptools

1
$ wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python

安装 pip

1
$ sudo easy_install pip

安装 scrapy

1
$ sudo pip Scrapy

问题

  • 安装scrapy出现, Python.h: No such file or directory

    解决方法是安装python-dev,这是Python的头文件和静态库包:

    1
    $ sudo apt-get install python-dev