在Mac上运行已构建的PyTables的问题
我在Mac上安装了numpy 1.5.1、numexpr 1.4.2和PyTables 2.2.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
1 个回答
1
我解决问题的方法是把所有东西都清理掉,然后重新开始构建。所以我也不太确定到底是什么问题,但我觉得可能是我把不同版本搞混了。