导入深度语音错误:找不到模块

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

我正在尝试安装

DeepSearch
库,以便我可以使用预训练模型来构建语音转文本项目。

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-8-a1bcd52700aa> in <cell line: 1>()
----> 1 import deepspeech
      2 
      3 # Path to the pre-trained model files
      4 model_path = "/content/deepspeech-0.9.3-models.pbmm"
      5 scorer_path = "/content/deepspeech-0.9.3-models.scorer"  # Optional, for improved performance

ModuleNotFoundError: No module named 'deepspeech'

我遇到了模块未找到错误,我也尝试使用版本,但它给了我找不到合适版本的错误。

ERROR: Could not find a version that satisfies the requirement deepspeech==0.9.3 (from versions: none)
ERROR: No matching distribution found for deepspeech==0.9.3

当我尝试安装

deepspeech github
和requirements.txt 时,我尝试使用
setupfile
目录。我收到错误:

 Collecting absl-py==0.9.0
  Downloading absl-py-0.9.0.tar.gz (104 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 104.0/104.0 kB 3.3 MB/s eta 0:00:00
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Preparing metadata (setup.py) ... error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

那么如何安装deepspeech库呢?

python deep-learning nlp mozilla-deepspeech
1个回答
0
投票

深度搜索的最新版本是 3 年前的 2020 年 12 月

您无法安装 deepsearch,因为它仅支持

python <= 3.6
,该功能已过时。如果要使用,可以单独下载旧版本的python并安装deepsearch。

https://pypi.org/project/deepspeech/#description

© www.soinside.com 2019 - 2024. All rights reserved.