当前位置: 动力学知识库 > 问答 > 编程问答 >

python - ImportError when I tried to import pandas and matplotlib

问题描述:

I am just a beginner in python. I installed ipython-notebook by using anaconda. I can't import pandas, matplotlib. I tried the way in the "Reason" but it didn't work. Could anyone help me? Thank you!


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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: