【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

你可能感兴趣的:(python,pip)