为了安装PyTables,我在安装numexpr时遇到了一个问题,这样我就可以处理海量数据集了。
构建详细信息: Windows 7专业版64位、Python 2.7、numexpr 2.01、numpy v1.6.1、scipy v0.10.1
下面是正在发生的事情:
import numpy as np
import scipy as sp
import numexpr as ne
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\python27\lib\site-packages\numexpr\__init__.py", line 38, in <
from numexpr.expressions import E
File "c:\python27\lib\site-packages\numexpr\expressions.py", line 31, i
from numexpr import interpreter
ImportError: DLL load failed: The specified module could not be found.当我尝试从numexpr.expressions导入E时,它也会给出错误。
我的路径包括:
c:\python27\;c:\python27\scripts\;c:\python27\lib\site-packages\
发布于 2012-11-17 02:49:48
有几件事可能会发生。这应该会缩小范围
1)检查c:\python27\ dll以查找它尝试导入的dll。
2)查看过程的哪一部分抛出了错误。使用ipython导入numexpr,然后导入解释器,查看这些导入中是否存在导致错误的导入
3)这可能会导致两件事:
a)您没有它正在寻找的DLL,这可以通过安装该软件包来解决
b)要导入的DLL在那里,但该DLL的依赖项不在。使用依赖项遍历器加载DLL并查看缺少的内容
发布于 2012-11-17 06:54:47
您是否考虑过安装Python(x,y)
Python2.7、numexpr、numpy、scipy和PyTables以及lots of other stuff都包含在一个安装程序中,您可能会发现它们对数据分析很有用。它应该可以让你跳过你在安装各个包时遇到的麻烦。
https://stackoverflow.com/questions/13419509
复制相似问题