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的安装. https://blog.csdn.net/porsche911sel/article/details/54347971

猜你喜欢

转载自blog.csdn.net/w5688414/article/details/104754344