无法将Google AutoML连接到kaggle内核

问题描述 投票:0回答:1

我正在尝试通过kaggle笔记本电脑连接到Google云服务。但是我在Kaggle笔记本电脑上出现属性错误。

请在下面找到代码;

PROJECT_ID = 'abc'
from google.cloud import automl_v1beta1 as automl
automl_client = automl.AutoMlClient()

错误;

AttributeError: module 'google.cloud.automl_v1beta1' has no attribute 'AutoMlClient'

任何人都可以在这方面帮助我

感谢与问候

Michael

google-cloud-platform kaggle
1个回答
0
投票

我尝试了您的代码,但没有收到错误。我使用了与您相同的代码:

from google.cloud import automl_v1beta1 as automl


# Create an AutoML client
client = automl.AutoMlClient()

您是否安装了磁带库?

pip install google-cloud-automl
© www.soinside.com 2019 - 2024. All rights reserved.