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

Viewed 23334

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
4 Answers

First of all its a warning.

You can install python-Levenshtein using pip

pip install python-Levenshtein

You may have to change to pip3 incase if you are using python 3

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

You can install python-Levenshtein using pip3 or pip

pip3 install python-Levenshtein You may have to change to pip in case if you are using python2

Related