I'm working on a macbook pro trying to use the gensim package to do Word2Vec. I had used the model earlier in the week, but when I tried to resume using it, I was given an error regarding loading scipy. I tried loading only the specific model echoing the error message, and this is the same output:
>>> import scipy.sparse._sparsetools
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "//anaconda/lib/python2.7/site-packages/scipy/sparse/__init__.py", line 213, in <module>
from .csr import *
File "//anaconda/lib/python2.7/site-packages/scipy/sparse/csr.py", line 13, in <module>
from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \
ImportError: dlopen(//anaconda/lib/python2.7/site-packages/scipy/sparse/_sparsetools.so, 2): Symbol not found: __ZNSs4_Rep20_S_empty_rep_storageE
Referenced from: //anaconda/lib/python2.7/site-packages/scipy/sparse/_sparsetools.so
Expected in: dynamic lookup
I intall everything via pip, so nothing was specifically built on this mac. Any advice would be most appreciated.
System details:
Your issue is likely caused by a linking problem described in this github issue.
Since you are already using anaconda, probably the best strategy for you is to use compiled binaries instead of trying to compile with pip yourself.
The only two things you have to do is:
pip uninstall scipy
conda install scipy
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With