Import error in iPython after installing umfpack

六月ゝ 毕业季﹏ 提交于 2020-05-18 05:38:15

问题


After installing the umfpack package (which I needed) I can no longer import any packages in an iPython Notebook. Any import command e.g

import numpy as np

results in a stream of errors the last of which is

/Users/murray/anaconda/lib/python2.7/site-packages/numpy/core/__init__.py in <module>()
 12         os.environ[envkey] = '1'
 13         env_added.append(envkey)
---> 14 from . import multiarray
 15 for envkey in env_added:
 16     del os.environ[envkey]

ImportError: dlopen(/Users/murray/anaconda/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): Library not loaded: @rpath/libopenblas-r0.2.18.dylib
Referenced from: /Users/murray/anaconda/lib/python2.7/site-packages/numpy/core/multiarray.so
Reason: image not found

I'm really out of my depth herem so if you can help, assume I am a total novice.


回答1:


Someone fixed it for me by reinstalling everything.



来源:https://stackoverflow.com/questions/42776766/import-error-in-ipython-after-installing-umfpack

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!