お世話になります。
python3.6.8
centos7
from google.cloud import speech_v1 as speech
とpyに書くと
Traceback (most recent call last): File "sample.py", line 5, in <module> from google.cloud import speech_v1 as speech File "/usr/local/lib/python3.6/site-packages/google/cloud/speech_v1/__init__.py", line 17, in <module> from google.cloud.speech_v1.gapic import speech_client File "/usr/local/lib/python3.6/site-packages/google/cloud/speech_v1/gapic/speech_client.py", line 28, in <module> import google.api_core.operation File "/usr/local/lib/python3.6/site-packages/google/api_core/operation.py", line 45, in <module> from google.longrunning import operations_pb2 ImportError: cannot import name 'operations_pb2'
とでます。operations_pb2のインストール方法と本エラーの回避策を教えてください
宜しくお願いします。
回答1件
あなたの回答
tips
プレビュー