Error compiling C code for python hmmlearn package -


i'm having trouble getting hmmlearn package install (in virtual environment); seems have underlying c code. package installs fine pip, when try import core class, error:

in [1]: import hmmlearn  in [2]: hmmlearn import hmm --------------------------------------------------------------------------- importerror                               traceback (most recent call last) <ipython-input-2-8b8c029fb053> in <module>() ----> 1 hmmlearn import hmm  /export/hdi3/home/krono/envs/sd/lib/python2.7/site-packages/hmmlearn/hmm.py in <module>()      19 sklearn.utils import check_random_state      20 ---> 21 .base import _basehmm      22 .utils import iter_from_x_lengths, normalize      23  /export/hdi3/home/krono/envs/sd/lib/python2.7/site-packages/hmmlearn/base.py in <module>()      11 sklearn.utils.validation import check_is_fitted      12 ---> 13 . import _hmmc      14 .utils import normalize, log_normalize, iter_from_x_lengths      15  importerror: /export/hdi3/home/krono/envs/sd/lib/python2.7/site-packages/hmmlearn/_hmmc.so: undefined symbol: npy_expl 

i've been reading other questions on seem treat this, one solution (use anaconda) won't work since hmmlearn isn't included. seems answer has compiling c code, i'm not sure how go it. appreciated!

i ran same issue while ago , found solution trying possible. whatever reason in cases pip skips building c-extensions, when package saved cache directory. if force pip ignore cache, builds package scratch, solution uninstall package in first place , run pip install --no-cache-dir <package>


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -