Home>

python3.6.8
centos7

from google.cloud import speech_v1 as speech
If i write

and 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'

How do I install operations_pb2 and how to avoid this error?