解决Python中的AttributeError: module lib has no attribute X509_V_FLAG_CB_ISSUER_CHECK错误

问题:

运行脚本报错:module lib has no attribute X509_V_FLAG_CB_ISSUER_CHECK

原因:

pyOpenSSL版本与python版本不匹配

解决方案:

window系统
重新安装pyOpenSSL
1、卸载当前版本pyOpenSSL

pip uninstall pyOpenSSL

2、重新安装适合当前python版本的pyOpenSSL

pip install pyOpenSSL
物联沃分享整理
物联沃-IOTWORD物联网 » 解决Python中的AttributeError: module lib has no attribute X509_V_FLAG_CB_ISSUER_CHECK错误

发表回复