【发布时间】:2019-11-08 09:45:23
【问题描述】:
我使用pip install google-cloud为系统安装了google.cloud。
但下一个错误我有ImportError: cannot import name 'speech' from 'google.cloud' (unknown location)
如何纠正这个错误?
【问题讨论】:
-
'pip install google-cloud-speech'
-
您还可以确保为正确的 python 版本安装了它。我最初做了
python -m pip install google-cloud-speech,但需要做python3 -m pip install google-cloud-speech