【问题标题】:UserWarning: Using slow pure-python SequenceMatcher用户警告:使用慢速纯 python SequenceMatcher
【发布时间】:2021-04-15 08:39:04
【问题描述】:

在使用 Python 模糊匹配库时,我面临以下问题:

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

【问题讨论】:

    标签: python pandas dataframe fuzzywuzzy


    【解决方案1】:

    见Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat) 尤其是 WISAM 的第三个答案。

    您的问题归结为安装,例如Visual Studio 社区 2017 (也许你有 Visual Studio,但有些旧版本)。

    【讨论】:

      猜你喜欢
      • 2014-10-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-07
      • 2018-05-26
      相关资源
      最近更新 更多