linux中scrapy startproject 创建项目失败AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'

执行 scrapy  startproject  weixin 命令后报错

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

linux中scrapy startproject 创建项目失败AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'

百度显示Twisted版本的问题,原因是使用pip install Scrapy自动安装了较高版本的Twisted

翻看安装scrapy的记录找到一条信息

linux中scrapy startproject 创建项目失败AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'

然后就执行了 pip install twisted==13.1.0 之后再次进行创建就可以了

linux中scrapy startproject 创建项目失败AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'