0
点赞
收藏
分享

微信扫一扫

mac ModuleNotFoundError: No module named 'Levenshtein'


今天在运行语音识别程序的时候出现了下面的错误:

Traceback (most recent call last):
File "train.py", line 6, in <module>
from decoder import GreedyDecoder
File "/Users/admin/Documents/pythonFiles/speech_recognition/masr/decoder.py", line 1, in <module>
import Levenshtein as Lev
ModuleNotFoundError: No module named 'Levenshtein'

 

解决方法

pip install python-Levenshtein

 

参考文献

[1].在Windows下,python-Levenshtein的安装. ​

举报

相关推荐

0 条评论