【发布时间】:2014-08-17 22:36:42
【问题描述】:
我最近更新了一些软件包和我的 EPD Canopy 版本(到 1.4.1.1975),现在我无法导入 pandas、numpy、scipy 或 matplotlib。我得到下面的ImportError。我也尝试过从命令提示符导入,但出现同样的错误。
pandas - 0.14.0-1
numpy - 1.8.0-2
scipy - 0.14.0-1
matplotlib - 1.3.1-8
有人对我如何解决这个问题有任何建议吗? From this Stackoverflow question 似乎我可能需要将某些内容更改/移动到不同的目录。有人可以解释我该怎么做吗?有人建议This documentation,但我不确定如何根据我的情况进行调整。
import pandas as pd
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-3-af55e7023913> in <module>()
----> 1 import pandas as pd
C:\Users\AppData\Local\Enthought\Canopy32\User\lib\site-packages\pandas\__init__.py in <module>()
10 print(e)
11 if 'No module named lib' in str(e):
---> 12 raise ImportError('C extensions not built: if you installed already '
13 'verify that you are not importing from the source '
14 'directory')
ImportError: C extensions not built: if you installed already verify that you are not importing from the source directory
No module named lib
【问题讨论】:
标签: python python-2.7 importerror python-import enthought