我尝试导入pandas和matplotlib时的ImportError

时间:2015-12-24 00:51:09

标签: python matplotlib ipython-notebook anaconda

我只是python的初学者。我使用anaconda安装了ipython-notebook。我无法导入pandas,matplotlib。我试着在#34; Reason"但它没有用。谁能帮助我?谢谢!

ImportError                               Traceback (most recent call last)
<ipython-input-1-af55e7023913> in <module>()
----> 1 import pandas as pd

/Users/hongliwang1/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/__init__.py in <module>()
     11                       "pandas from the source directory, you may need to run "
     12                       "'python setup.py build_ext --inplace' to build the C "
---> 13                       "extensions first.".format(module))
     14 
     15 from datetime import datetime

ImportError: C extension: dlopen(/Users/hongliwang1/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so, 2): Library not loaded: @rpath/lib/libmkl_intel_lp64.dylib
  Referenced from: /Users/hongliwang1/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so
  Reason: image not found not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace' to build the C extensions first.

0 个答案:

没有答案