[英]from google.cloud import speech_v1 ---- ModuleNotFoundError: No module named 'google'
I use Cloud Shell Console to write python code that uses Google Speech to Text我使用 Cloud Shell Console 编写使用 Google Speech to Text 的 python 代码
Steps taken:采取的步骤:
Google cloud shell console to write the code谷歌云shell控制台编写代码
gcloud app deploy
Error message: File "/home/vmagent/app/main.py", line 3, in <module> from google.cloud import speech_v1 ModuleNotFoundError: No module named 'google'
错误消息:
File "/home/vmagent/app/main.py", line 3, in <module> from google.cloud import speech_v1 ModuleNotFoundError: No module named 'google'
pip list
run on the console shows that 'google' is included在控制台上运行的
pip list
显示包含“google”
Try using pip3
instead of pip
.尝试使用
pip3
而不是pip
。
It took me hours to find out the files had been in another directory all along.我花了几个小时才发现这些文件一直在另一个目录中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.