使用apt-get安装scrapy后,调试起来总是不对,检查了一下版本,才知道默认安装的版本是0.14.04。o(╯□╰)o
查阅了一下官方文档,这是推荐的安装方法:
- Import the GPG key used to sign Scrapy packages into APT keyring:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 627220E7
- Create /etc/apt/sources.list.d/scrapy.list file using the following command:
echo ‘deb http://archive.scrapy.org/ubuntu scrapy main‘ | sudo tee /etc/apt/sources.list.d/scrapy.list
- Update package lists and install the scrapy package:
sudo apt-get update && sudo apt-get install scrapy
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-10-14 10:56:32