在python中导入表时出错
我已经在windows 32位下安装了python 2.6、numpy 1.6.1、tables 2.3.1 y numexpr 2.0。但是导入表给了我这个错误:
Traceback (most recent call last):
File "...\src\test\test6.py", line 1, in <module>
import tables
File "C:\Python26\Lib\site-packages\tables\__init__.py", line 96, in <module>
from tables.file import File, openFile, copyFile
File "C:\Python26\lib\site-packages\tables\file.py", line 42, in <module>
import numexpr
File "C:\Python26\Lib\site-packages\numexpr\__init__.py", line 38, in <module>
from numexpr.expressions import E
File "C:\Python26\Lib\site-packages\numexpr\expressions.py", line 31, in <module>
from numexpr import interpreter
ImportError: DLL load failed: The specified module could not be found.
I have installed python 2.6, numpy 1.6.1, tables 2.3.1 y numexpr 2.0 under windows 32bits. However import tables gives me this error:
Traceback (most recent call last):
File "...\src\test\test6.py", line 1, in <module>
import tables
File "C:\Python26\Lib\site-packages\tables\__init__.py", line 96, in <module>
from tables.file import File, openFile, copyFile
File "C:\Python26\lib\site-packages\tables\file.py", line 42, in <module>
import numexpr
File "C:\Python26\Lib\site-packages\numexpr\__init__.py", line 38, in <module>
from numexpr.expressions import E
File "C:\Python26\Lib\site-packages\numexpr\expressions.py", line 31, in <module>
from numexpr import interpreter
ImportError: DLL load failed: The specified module could not be found.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你需要编译interpreter.c,这在Windows 中并不容易。如果你用numexpr 1.4可以吗?您可以通过这种方式使用预编译的安装程序 http://code.google.com/p/ numexpr/下载/列表
You'd need to compile interpreter.c which isn't that easy in windows. Would it be ok if you used numexpr 1.4? You can use a precompiled installer that way http://code.google.com/p/numexpr/downloads/list