mac ModuleNotFoundError: No module named 'Levenshtein'

阅读 54

2022-08-12


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

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)

0 0 举报