红联Linux门户
Linux帮助

ubuntu 16.04安装scrapy

发布时间:2016-05-03 09:48:59来源:linux网站作者:solo_ws

之前由于双显卡死机的问题一直没如ubuntu。现在16.04解决了这个问题,遂转战ubuntu。

先安装pip:apt install Python-pip


第一次尝试安装scrapy :pip install scrapy

报错:Failed building wheel for lxml

Failed building wheel for cryptography

Failed cleaning build dir for cryptography

Failed building wheel for cffi

说明后面这几个ubuntu16没有自带。


经过各种尝试,输入下面的命令即可:

apt-get install python-lxml

apt-get install libxslt1-dev

apt-get install python-setuptools

apt-get install libevent-dev

apt-get install libffi-dev

apt-get install python-openssl

apt-get install libssl-dev


本文永久更新地址:http://www.linuxdiyf.com/linux/20290.html