在 Mac 上运行构建的 PyTables 时出现问题
我在 Mac 上构建了 numpy 1.5.1、numexpr 1.4.2 和 PyTables 2.2.1,但出现以下错误。我用谷歌搜索了它,但发现只有 1 个地方有人提到了这个特定的错误,并且没有找到解决方案。
有谁知道这意味着什么?
谢谢, 戴夫
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.__version__
'1.5.1'
>>> numpy.__file__
'/Applications/.../__init__.pyc' (i.e., where I put it)
>>> import tables
RuntimeError: module compiled against API version 6 but this version of numpy is 4
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Applications/VORPAL/VORPAL/Python/Extras/lib/python/tables/__init__.py", line 63, in <module>
from tables.utilsExtension import getPyTablesVersion, getHDF5Version
ImportError: numpy.core.multiarray failed to import
I built numpy 1.5.1, numexpr 1.4.2, and PyTables 2.2.1 on a Mac, and am getting the following error. I googled it, but found only 1 place where someone mentions this specific error, and found no resolution.
Does anyone know what this means?
Thanks,
Dave
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.__version__
'1.5.1'
>>> numpy.__file__
'/Applications/.../__init__.pyc' (i.e., where I put it)
>>> import tables
RuntimeError: module compiled against API version 6 but this version of numpy is 4
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Applications/VORPAL/VORPAL/Python/Extras/lib/python/tables/__init__.py", line 63, in <module>
from tables.utilsExtension import getPyTablesVersion, getHDF5Version
ImportError: numpy.core.multiarray failed to import
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我能够通过清除所有内容并进行干净的构建来解决我的问题。所以我不太确定问题是什么,但我想我一定是以某种方式混淆了版本。
Well, I was able to solve my problem by blowing everything away and making a clean build. So I'm not exactly sure what the problem was, but I think I must have been mixing up versions somehow.