Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 如何pip安装谷歌云异常_Google Cloud Platform - Fatal编程技术网

Google cloud platform 如何pip安装谷歌云异常

Google cloud platform 如何pip安装谷歌云异常,google-cloud-platform,Google Cloud Platform,我用python编写了以下导入语句: 来自google.cloud.exceptions import NotFound 我得到一个例外: ModuleNotFoundError:没有名为“google.cloud.exceptions”的模块 我的pip冻结有以下几行: google-api-core==1.14.3 google-auth==1.7.1 google-cloud==0.34.0 google-cloud-tasks==1.3.0 googleapis-common-proto

我用python编写了以下导入语句:
来自google.cloud.exceptions import NotFound
我得到一个例外:
ModuleNotFoundError:没有名为“google.cloud.exceptions”的模块
我的pip冻结有以下几行:

google-api-core==1.14.3
google-auth==1.7.1
google-cloud==0.34.0
google-cloud-tasks==1.3.0
googleapis-common-protos==1.6.0
grpc-google-iam-v1==0.12.3
我应该怎么做/pip安装才能使这项工作正常进行?

根据文档:,您可以只需执行
pip安装google cloud
,然后在python文件中,从google.api\u core.exceptions导入

导入时缺少
.api\u core
,根据文档:,您只需执行
pip安装google cloud
,然后在python文件中,从google.api\u core.exceptions导入


您的导入中缺少
.api\u core

查看我建议您检查的问题。请记住,这不是谷歌写的官方文件。看看这个问题,我想建议你检查一下。请记住,这不是谷歌编写的官方文档。