
错误:模块“lib”没有属性“x509_v_flag_cb_issuer_check”
问题:
在重新安装 python 后,使用 google-api-python-client 库时出现以下错误:
attributeerror: module 'lib' has no attribute 'x509_v_flag_cb_issuer_check'
解决方法:
立即学习“Python免费学习笔记(深入)”;
该错误通常由 pyopenssl 库版本过旧引起。要解决此问题,请执行以下步骤:
# cb_issuer_check = _lib.x509_v_flag_cb_issuer_check
pip install pip --upgrade pip install pyopenssl --upgrade
CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
现在,应该可以正常工作了。
以上就是Python 安装后使用 google-api-python-client 出现“AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'” 如何解决?的详细内容,更多请关注php中文网其它相关文章!
python怎么学习?python怎么入门?python在哪学?python怎么学才快?不用担心,这里为大家提供了python速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号