我正在尝试使用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
我安装了所有依赖项。
/usr/include
,/usr/lib
的图书馆找到了HDF5标题。/usr/include
,/usr/lib
的图书馆找到了LZO 2标题。/usr/local/include
,/usr/local/lib
的图书馆找到了bzip2标头。但仍有警告:
.. 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?
答案 0 :(得分:1)
尝试添加:
-I/usr/include/mpi