Search code examples
pythonfuzzywuzzysequencematcher

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

Solution

  • 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