gpt4 book ai didi

python - 无法使用 python 安装 azure-cognitiveservices-speech

转载 作者:行者123 更新时间:2023-12-03 02:37:14 42 4
gpt4 key购买 nike

尝试使用以下命令,

pip3 install azure-cognitiveservices-speech
python3 -m pip install --upgrade pip
import azure.cognitiveservices.speech as speechsdk

错误:

ImportError: libasound.so.2: cannot open shared object file: No such file or directory

在处理上述异常的过程中,又发生了一个异常:

ModuleNotFoundError: No module named '_speech_py_impl'

最佳答案

在 Ubuntu 虚拟机和 Azure 功能 (Linux) 中找不到 libasound 软件包。我们可以安装软件包“sudo apt-get install libasound2 alsa-utils alsa-os”。对于Azure功能(Linux),我们可以使用Docker容器,其中libasound可以安装在Dockerfile中。

关于python - 无法使用 python 安装 azure-cognitiveservices-speech,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62871275/

42 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com