【发布时间】:2012-03-18 03:09:48
【问题描述】:
我正在尝试使用 easy_install 或 pip 安装 PyTables,但两次尝试都以相同的错误结束:
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 软件包。
- 在
/usr/include找到 HDF5 标头,在/usr/lib找到库。 - 在
/usr/include找到 LZO 2 标头,在/usr/lib找到库。 - 由于已发现 LZO 2,因此跳过对 LZO 1 的检测。
- 在
/usr/local/include找到 bzip2 标头,在/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?
【问题讨论】:
-
除了您包含的错误消息之外,还有其他错误消息吗? “失败,退出状态 1”只是说命令失败,而不是为什么。在它之前应该有一条错误消息,或者一种使错误消息出现的方法。
-
感谢 Inerdial 的回复,我发现:在 /usr/include/hdf5.h:24:0、src/H5ATTR.h:19、src/H5ARRAY 包含的文件中。 c:1: /usr/include/H5public.h:57:20: 致命错误:mpi.h: 没有这样的文件或目录编译终止。
标签: python cython hdf5 bzip2 pytables