pip install python-Levenshtein python import Levenshtein str1 = "hello" str2 = "hola" distance = Levenshtein.distance(str1, str2)