之前由于双显卡死机的问题一直没如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