相关文章推荐
腼腆的柠檬  ·  python ...·  1 周前    · 
有情有义的大白菜  ·  python ...·  1 周前    · 
完美的馒头  ·  python QTreeWidget ...·  1 周前    · 
失眠的烤红薯  ·  python qt textBrowser ...·  5 天前    · 
礼貌的火腿肠  ·  Split-Path ...·  9 月前    · 
心软的香瓜  ·  Linker Tools Error ...·  1 年前    · 
霸气的大蒜  ·  Android Studio 3.0 利用 ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Getting error while using fuzzywuzzy: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning

Ask Question

I am getting below error. Is there any way to fix it without installing python-Levenshtein and if not then how to install python-Levenshtein on linux.

UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
  warnings.warn
                Just as information, fuzzywuzzy sequence matcher is purely python based (unlike numpy, elastic search etc which are based on "C"). This results in much slower process than any matcher which is based on C. That is why the warning shows up.
– EMT
                Nov 15, 2021 at 11:42
                Except that for some of us, the operation is MUCH MUCH MUCH slower after having installed that. It may be that I'm using it wrong.
– Mark Allen
                Feb 22, 2019 at 20:50

I was getting this same error in my Windows 10 setup. When I tried pip install python-Levenshtein I got

Requirement already satisfied: python-Levenshtein in ...

I uninstalled using pip uninstall python-Levenshtein and reinstalled it. And the error is gone.

You may ignore the warning by using the -W flag. Note that it will silent ALL warnings. I'd suggest just installing python-levenshtein module as Preetham suggested.

python -W ignore foo.py
        

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.