Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 337
Rishi Bansal Avatar asked Dec 18 '18 06:12

Rishi Bansal


3 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

like image 147
Preetham Avatar answered Oct 01 '22 00:10

Preetham


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.

like image 20
hesna Avatar answered Sep 30 '22 22:09

hesna


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
like image 34
Yash Nag Avatar answered Sep 30 '22 22:09

Yash Nag