I have already installed pycrfsuite still it is giving import error

7.1k views Asked by At

I have already installed pycrfsuite from

sudo pip install python-crfsuite

but still it is giving import error

Traceback (most recent call last):
    File "rough.py", line 3, in
import pycrfsuite ImportError: No module named pycrfsuite

What can i do ?

3

There are 3 answers

0
MaheshPVM On BEST ANSWER

Make sure that you are running your program in same python version in which you have installed package

For example,you have installed python-crfsuite in python3 and you are running the code with python2..that might be the case to give the error

0
E. Pence On

You are sure that the python-crfsuite installation imports as pycrfsuite? I cannot think this is anything other than a spelling issue. Just in case, could you show relevant code? Try 'import python-crfsuite'

0
ADan On

I had the same error. Try to uninstall "python-crfsuite" and install it once again. For me it worked.