本文主要是介绍scrapy typeerror: attrs() got an unexpected keyword argument ‘eq‘,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题:
scrapy 爬虫程序报错
scrapy typeerror: attrs() got an unexpected keyword argument 'eq'
原因:
Twisted 版本过高
解决方法:
# 安装指定版本
pip install --index https://pypi.mirrors.ustc.edu.cn/simple/ Twisted==21.7.0
# 几个可以用的版本
Scrapy==2.5.1
attrs==21.4.0
Twisted==21.7.0# 升级安装包到指定版本
pip install --upgrade --index https://pypi.mirrors.ustc.edu.cn/simple/ Scrapy==2.5.1
这篇关于scrapy typeerror: attrs() got an unexpected keyword argument ‘eq‘的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!