Open bwang482 opened 7 years ago
I've got the same issue. I traced back to wmd.py, it turned out that the Python.h is not found in emd.h. Someone could help?
me too.
wmd> python wmd.py SMERP_only_text.pk SMERP_only_text_wmd.pk
Traceback (most recent call last):
File "wmd.py", line 4, in
you can use pyemd instead, which gensim using this package too. pip install pyemd
you should first build emd in python-master-emd
Has anyone come across a solution to this? When I run build
in python-emd-master, I get the error
Linking wrapper library '_emd.so'. -n ld -shared -o _emd.so emd.o emd_wrap.o ld: unknown option: -shared make: *** [_emd.so] Error 1 rm emd_wrap.o emd.o emd_wrap.c
So it looks like emd isn't being built properly
I've installed swig and build emd with 'make' command but it still gives the error
ImportError: No module named _emd
Why is that I keep getting "
ImportError: No module named _emd
" error from emd.py? I use python 2.7.May I ask what is '_emd' ? I assume it's not the same as pyemd?
Thanks in advance for your time!