scrapy...Could not find...Twisted

scrapy : Could not find a version that satisfies the requirement Twisted>=13.1.0 (from Scrapy) (from versions: )

错误

在安装scrapy的时候,如果机器是一个纯净的机器,那么大多数情况下会出现以下错误:

1
2
 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)

解决办法

1
2
3
4
wget https://twistedmatrix.com/Releases/Twisted/19.2/Twisted-19.2.1.tar.bz2
tar -jxvf Twisted-19.2.1.tar.bz2
cd Twisted-19.2.1
python setup.py install

​ 如果需要在虚拟环境中安装,那么进入虚拟环境后再执行安装命令即可。

文章作者: TangLyan
文章链接: https://toheart.github.io/2019/06/17/python/twisted-not-exist/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 荦彦的博客
打赏一下