【问题标题】:Problems running built PyTables on Mac在 Mac 上运行构建的 PyTables 的问题
【发布时间】:2011-05-12 11:51:57
【问题描述】:

我在 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

【问题讨论】:

    标签: python macos pytables


    【解决方案1】:

    好吧,我能够通过将所有内容吹走并进行干净的构建来解决我的问题。所以我不确定问题出在哪里,但我想我一定是在某种程度上混淆了版本。

    【讨论】:

      猜你喜欢
      • 2012-01-10
      • 1970-01-01
      • 1970-01-01
      • 2021-07-11
      • 2021-05-20
      • 1970-01-01
      • 1970-01-01
      • 2023-03-10
      • 2011-01-22
      相关资源
      最近更新 更多