前提・実現したいこと
GCP DatalabでTranslateAPIを使用したいです。
発生している問題・エラーメッセージ
from google.cloud import translate
のみ記載して実行したところ、以下のようなエラーが出てきます。
ImportErrorTraceback (most recent call last)
<ipython-input-x-xxxxxxxxx> in <module>()
----> 1 from google.cloud import translate
ImportError: cannot import name translate
試したこと
以下のAPIを有効にして、Datalabは立ち上げることはできています。
・Google Compute Engine API
・Cloud Translation API
・Cloud Source Repositories API
対応するAPIを有効にした上で、以下を実行しても同様のエラーでます。
from google.cloud import vision
from google.cloud import language
よろしくお願いします。
あなたの回答
tips
プレビュー