首先需要安装依赖包如下:sudo apt-get install python3-dev build-essential python3-pip libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev 安装scrapy pip install scrapy