安装Scrapy 报Twisted 错误
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
wget https://pypi.python.org/packages/source/T/Twisted/Twisted-15.2.1.tar.bz2
tar -xjvf Twisted-15.2.1.tar.bz2
cd Twisted-15.2.1
python setup.py install
导入scrapy报错: No module named twisted.persisted.styles
出现:import twisted.persisted.styles # NOQA
ModuleNotFoundError: No module named 'twisted.persisted'
解决:
升级 twisted
sudo pip install twisted --upgrade

浙公网安备 33010602011771号