2011-05-10 67 views
1

我在Mac上构建了numpy 1.5.1,numexpr 1.4.2和PyTables 2.2.1,并且出现以下错误。我把它搜索了一遍,但只发现有一个地方有人提到这个具体的错误,并没有找到解决办法。在Mac上运行构建的PyTables时出现的问题

有谁知道这意味着什么?

谢谢, 戴夫

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 

回答

1

嗯,我能吹了所有一切,使一个干净的构建来解决我的问题。所以我不确定问题是什么,但我认为我一定是以某种方式混合了版本。