刚买的阿里云服务器,准备安装scrapy
root登陆
首先安装下面这些~
apt-get install build-essential
apt-get install python-dev
apt-get install libxml2-dev
apt-get install libxslt1-dev
apt-get install python-setuptools
然后执行easy_install Scrapy
但是报错了:
in/ld: cannot find -lz所以安装apt-get install zlib1g-dev,之后easy_install Scrapy
再报错,需要pip install pyasn1,然后easy_install Scrapy
继续报错 c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
需要 apt-get install libffi-dev,再次easy_install Scrapy
再报错 openssl.c:423:27: fatal error: openssl/e_os2.h: No such file or directory
于是apt-ge install openssl后easy_install Scrapy
但是不顶用,于是接下来安装这个:
apt-get install libssl-dev,安装完后easy_install Scrapy
Finished processing dependencies for Scrapy
安装成功~
测试一下
scrapy shell http://www.baidu.com
scrapy安装
最新推荐文章于 2020-04-21 11:24:36 发布