我最近更新了一些包和我的版本的EPD Canopy(to 1.4.1.1975),现在我无法导入pandas
,numpy
,scipy
或matplotlib
。下面我得到了ImportError
。我也尝试从命令提示符导入,但我可以有同样的错误。ImportError:没有名为lib的模块。无法导入熊猫,numpy,scipy,matplotlib
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
感谢此问题。是的,你是正确的我删除了我的名字的隐私,但我会在未来遵循你的建议。 – Bprodz