AttributeError: module 'google.auth.credentials' has no attribute 'CredentialsWithTokenUri'
时间: 2023-09-23 11:04:53 浏览: 191
这个错误可能是因为您的google-auth和google-auth-oauthlib版本不兼容导致的。您可以尝试更新这两个库:
```
pip install --upgrade google-auth google-auth-oauthlib
```
如果问题仍然存在,请检查您的代码中是否有与google-auth和google-auth-oauthlib相关的导入,并确保导入的版本是最新的。
相关问题
AttributeError: module 'google.auth.credentials' has no attribute 'CredentialsWithTokenUri
这个错误通常发生在使用 Google Cloud Platform 服务时,出现了版本不兼容的问题。建议您更新相关的库和 SDK 到最新版本,或者检查您的代码中是否有版本冲突的问题。您可以尝试升级 google-auth 库的版本,或者升级 google-cloud-storage 库的版本。如果问题仍然存在,请提供更多的上下文和代码,以便更好地帮助您解决问题。
AttributeError: module 'google.auth.transport.requests' has no attribute 'post'
AttributeError: module 'google.auth.transport.requests' has no attribute 'post' 是一个错误提示,意味着在使用google.auth.transport.requests模块时,没有找到名为'post'的属性。这通常是因为该模块中确实没有名为'post'的属性或方法。
可能的原因是:
1. 版本不匹配:你使用的google.auth.transport.requests模块的版本可能过低,没有包含'post'属性。你可以尝试更新该模块的版本,或者查看官方文档以确定是否有其他方法来执行相同的操作。
2. 拼写错误:请确保你正确拼写了属性名'post',并且在模块中确实存在。
如果你能提供更多上下文或代码示例,我可以给出更具体的解决方案。
相关推荐
![py](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)