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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With