module ‘OpenSSL.SSL‘ has no attribute ‘SSLv3_METHOD‘的解决方法

找不到SSLv3_Methodd的解决方法

从网上下了爬虫代码,提示:
AttributeError: module ‘OpenSSL.SSL’ has no attribute ‘SSLv3_METHOD’
在这里插入图片描述
网上有很多其他找不到模块的解决方法,尝试了都没有用。最后在bing搜索了下,找到了如下方法。是因为版本问题。
所以,删除新版,安装旧版就可以解决这个问题。

pip uninstall pyOpenSSL==22.1.0
pip install pyOpenSSL==22.0.0

你可能感兴趣的:(ssl,网络协议,网络,爬虫)