You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

导入ezsheets时出现ImportError:无法从google.auth导入credentials的解决咨询

解决ezsheets导入时的google.auth凭据错误
  • 卸载当前安装的google-auth包:
    pip uninstall google-auth -y
    
  • 安装与ezsheets兼容的旧版google-auth(验证可用版本为1.35.0):
    pip install --user google-auth==1.35.0
    
  • 重新执行import ezsheets尝试导入
  • 若仍有问题,可彻底重装ezsheets:
    pip uninstall ezsheets -y
    pip install --user ezsheets
    

原因说明

新版google-auth调整了模块结构,不再支持从google.auth直接导入credentials,而ezsheets的代码尚未适配这一变更,因此安装兼容的旧版本google-auth即可解决该导入错误。

内容的提问来源于stack exchange,提问作者domigmr

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.05 02:35:49