当我试图进口Pandas和matplotlib的时候

2024-09-30 20:26:07 发布

您现在位置:Python中文网/ 问答频道 /正文

我只是python的初学者。我用Python安装了ipython笔记本。我不能进口熊猫,matplotlib。我试过用“理由”的方法,但没用。有人能帮我吗?谢谢您!在


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.

Tags: thetofromimportbuildpandasliblibrary