Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation instructions needed #23

Open
ggdhines-zz opened this issue Apr 25, 2015 · 4 comments
Open

installation instructions needed #23

ggdhines-zz opened this issue Apr 25, 2015 · 4 comments

Comments

@ggdhines-zz
Copy link

I've done
sudo python setup.py install
but then when I try:
import Levenshtein
Traceback (most recent call last):
File "", line 1, in
File "Levenshtein/init.py", line 1, in
from Levenshtein import _levenshtein
ImportError: cannot import name _levenshtein

In the source directory, I've done
gcc -Wall -I/usr/include/python2.7 -lpython2.7 -c _levenshtein.c
to create a file _levenshtein.o, but that doesn't seem to help.

I'm sure this is obvious for some people but better instructions are needed.

@ztane
Copy link
Owner

ztane commented May 1, 2015

you'd install the package using pip: pip install python-Levenshtein (would also download and install properly).

@ghost
Copy link

ghost commented Sep 14, 2016

hi @ztane I know this we should install using pip, but right now I am working in a big cluster where I can't install it, and we don't even have virtualend, or so. My only option is to provide this module aside the scripts I am using, so of course my first try was import Levenshtein and then it fails as said with ImportError: cannot import name _levenshtein Is there any workaround for this particular case?
Thanks for your help

@bigsmiles
Copy link

I met the same problem! how do you solve it ?

@ztane
Copy link
Owner

ztane commented Jul 22, 2017

@bigsmiles you need to install it with its setup.py. If you cannot install it with pip from pypi, then build a reusable wheel for your architecture and then install that with pip. Unfortunately, I don't have much time to provide a precompiled wheel except perhaps I could consider supporting Linux with manylinux image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants