【发布时间】:2019-12-17 03:41:18
【问题描述】:
我正在使用 mozilla 设置语音识别软件,并希望使用预训练模型。
这是为 macosx 准备的,我已经安装了 pip 和相关的 scipy 文件,但是当我运行我的 python 脚本时,我的系统似乎无法提取 scipy 模块。难道这是安装在虚拟环境本身的另一个目录中?
Terminal
(deepspeech-venv) Chabanis-MacBook-Pro:deepspeech chabani$ pip3 list
Package Version
---------- -------
deepspeech 0.5.1
numpy 1.17.0
pip 19.2.1
scipy 1.3.1
setuptools 41.0.1
wheel 0.33.4
Python
import scipy.io.wavfile as wav // this is the issue here
Terminal - deepspeech path
(deepspeech-venv) Chabanis-MacBook-Pro:deepspeech chabani$ which deepspeech
/Users/chabani/tmp/deepspeech-venv/bin/deepspeech
=== RESTART: /Users/chabani/tmp/deepspeech-venv/lib/python3.7/activate.py ===
Traceback (most recent call last):
File "/Users/chabani/tmp/deepspeech-venv/lib/python3.7/activate.py", line 7, in <module>
import scipy.io.wavfile as wav
ModuleNotFoundError: No module named 'scipy'
【问题讨论】:
-
您使用的是哪个版本的
Python?可能是您为与您现在使用的版本不同的版本安装了scipy。 -
试试
pip3 list,看看有没有scipy或者scikit-learn -
大家好,很抱歉延迟回复。 @ Dennis.M,是的,通过安装 scipy 使其工作。
-
@AshwinGeetD'Sa,感谢您的回复,是的,我错过了 scipy 安装。