0

When I try import fuzzymatcher I get the error:

ImportError: cannot import name 'ratio' from 'Levenshtein' (unknown location)

Ee Ann Ng
  • 109
  • 1
  • 8

1 Answers1

0

Add the line #include <Python.h> to first line of the file _levenshtein.c inside of the Levenshtein folder.

Then in fuzzywuzzy folder, replace from .StringMatcher import StringMatcher as SequenceMatcher with from Levenshtein import *.

Ee Ann Ng
  • 109
  • 1
  • 8