How to import and use python Levenshtein extension on OSX?
问题 I've downloaded the python-Levenshtein archive and extracted Levenshtein dir. So, in result I have the following files structure: Levenshtein - __init__.py - _levenshtein.c - _levenshtein.h - StringMatcher.py myscript.py And the following myscript.py content: from Levenshtein import * from warnings import warn print Levenshtein.distance(string1, string2) But I get the following error - Traceback (most recent call last): File "myscript.py", line 1, in <module> from Levenshtein import * File "