Scrapy安装报错:AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'解决办法

来源:互联网 发布:js中==和===的区别 编辑:程序博客网 时间:2024/06/05 10:00

安装Scrapy之后验证报错:

AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'

后来查资料发现是Twisted版本的问题。

原因是使用pip install Scrapy自动安装了较高版本的Twisted,

解决办法:

查看cmd中Requirement already satisfied中对应的Twisted版本,比如是13.1.0,然后输入:

pip install twisted==13.1.0

就可以啦~

阅读全文
0 0