我正在尝试使用gensim包来做Word2Vec的macbook pro.我在本周早些时候使用过该模型,但是当我尝试恢复使用时,我收到了关于加载scipy的错误.我尝试只加载回显错误消息的特定模型,这是相同的输出:
>>> 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
Run Code Online (Sandbox Code Playgroud)
我通过pip安装所有内容,因此没有专门在这个mac上构建.任何建议都将非常感激.
系统细节: