30

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
1
  • 3
    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. Commented Nov 15, 2021 at 11:42

5 Answers 5

44

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

Sign up to request clarification or add additional context in comments.

1 Comment

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.
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.

Comments

1

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

Comments

1

As soon as you install python-levenshtein and you restart the kernel you won't see that warning anymore. You do not even need to import python-levenshtein in your code base.

pip install python-levenshtein

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.