'ImportError: No module named Levenshtein

I have python-Levenshtein installed.

root@marcelo:~# pip show python-Levenshtein | grep Location
Location: /usr/lib/python2.7/dist-packages
root@marcelo:~#

However, I got the error message:

ImportError: No module named Levenshtein

Here is the relevante part of script code:

#!/usr/bin/env python 
# encoding: utf-8
#
#
#  scriptLattes
#  Copyright http://scriptlattes.sourceforge.net/
#
#
import logging
import os
import shutil
import sys
import Levenshtein

SEP     = os.path.sep
BASE    = 'scriptLattes' + SEP
ABSBASE = os.path.abspath('.') + SEP

I found the question posted here, but it not have a answer to solve my issue here.

Any suggestions? Thanks in advance.



Solution 1:[1]

simply give pip install Levenshtein and you'll be good to go. Worked for me.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Agog