环境:centos7 、 python3;
所遇问题:今天我用centos7 + python3安装 scrapy 时候报错,错误信息如下:
Could not find a version that satisfies the requirement Twisted>=13.1.0 (from Scrapy) (from versions: )
No matching distribution found for Twisted>=13.1.0 (from Scrapy)
中文翻译
无法找到满足Twisted> = 13.1.0(来自Scrapy)要求的版本(来自版本:)
没有找到Twisted> = 13.1.0(来自Scrapy)的匹配分布
解决办法:
1、下载Twisted高版本
官方网址: http://twistedmatrix.com/trac/wiki/Downloads
2、把下载的源码包上传到服务器
cd /usr/local
wget https://twistedmatrix.com/Releases/Twisted/17.9/Twisted-17.9.0.tar.bz2 #wget下载和解压的。如果一直不成功,请直接下载到本地\解压\再上传到服务器
cd Twisted-17.9.0
python setup.py install
cd ..
pip3 install Scrapy #切记,S要大写