是否可以在Python中安装名为google的模块?

问题描述 投票:-1回答:1

我尝试使用Python和Google云创建语音转文本转录器。

不幸的是,它总是给我错误“ ModuleNotFoundError:没有名为“ google”的模块”。

我安装了很多软件包,google-cloud,google-cloud-storage等,似乎没有任何作用。

你有什么想法吗?

以下是我使用的代码的一部分:

from pydub import AudioSegment
import io
import os
from google.cloud import speech_v1p1beta1 as speech
from google.cloud.speech_v1p1beta1 import enums
from google.cloud.speech_v1p1beta1 import types
import wave
from google.cloud import storage


ModuleNotFoundError: No module named 'google' # This is the error I receive

我完全迷失了。有人有主意吗?

python python-3.x google-cloud-platform speech-recognition speech-to-text
1个回答
0
投票

您是否在这里浏览过此页面:

https://cloud.google.com/speech-to-text/docs/quickstart-client-libraries#client-libraries-install-python

您是否尝试过:

pip install --upgrade google-cloud-speech
© www.soinside.com 2019 - 2024. All rights reserved.