0

我正在尝试使用其中一个easy_install或两个尝试安装 PyTables,pip但两次尝试都以相同的错误结束:

error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DNDEBUG=1 -DHAVE_LZO2_LIB=1 -DHAVE_BZ2_LIB=1 -Iblosc -I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/python2.7 -c src/H5ARRAY.c -o build/temp.linux-x86_64-2.7/src/H5ARRAY.o -Isrc -DH5_USE_16_API" failed with exit status 1

我已经安装了所有依赖项。

  • 发现安装了 numexpr 1.4.2 包。
  • 发现安装了 Cython 0.14.1 包。
  • 找到 HDF5 标头/usr/include,库位于/usr/lib.
  • 找到 LZO 2 标头/usr/include,库位于/usr/lib
  • 由于已发现 LZO 2,因此跳过了对 LZO 1 的检测。
  • 在 中找到 bzip2 标头,在/usr/local/include中找到库/usr/local/lib

但仍然有一个警告:

.. WARNING:: Could not find the bzip2 runtime. The bzip2 shared library was *not* found in the default library paths. In case of runtime problems, please remember to install it.

此警告是否有可能阻止成功安装 PyTables?

4

1 回答 1

1

尝试添加这个:

-I/usr/include/mpi
于 2013-02-08T14:55:56.440 回答