1. 先执行以下命令
sudo apt-get install python-lxml sudo apt-get install libxslt1-dev sudo apt-get install python-setuptools sudo apt-get install libevent-dev sudo apt-get install libffi-dev sudo apt-get install python-openssl sudo apt-get install libssl-dev
2. 然后执行
sudo pip install scrapy
安装成功