用户警告:使用慢速purepython SequenceMatcher

2024-05-20 00:05:10 发布

您现在位置:Python中文网/ 问答频道 /正文

在使用Python fuzzymatch库时,我面临以下问题:

from fuzzywuzzy import fuzz 

错误:

C:\Users\Anaconda3\lib\site-packages\fuzzywuzzy\fuzz.py:11: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
  warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')

当我试图安装python Levenshtein时,它给出了一个错误:

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  ----------------------------------------
  ERROR: Failed building wheel for python-Levenshtein

Tags: installtopure错误thisremovemicrosoftlevenshtein