【Python】AttributeError: module lib has no attribute X509

问题:

运行脚本报错: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

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/859e3fea48.html