[root@e06e8f90e201 optimus]# pip install tables
Collecting tables
Downloading tables-3.2.3.1.tar.gz (7.1MB)
100% |################################| 7.1MB 120kB/s
Complete output from command python setup.py egg_info:
/usr/bin/ld: cannot find -lhdf5
collect2: error: ld returned 1 exit status
* Using Python 2.7.5 (default, Nov 20 2015, 02:00:19)
* USE_PKGCONFIG: True
.. ERROR:: Could not find a local HDF5 installation.
You may need to explicitly state where your local HDF5 headers and
library can be found by setting the ``HDF5_DIR`` environment
variable or by using the ``--hdf5`` command-line option.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-SvZePF/tables/
有谁知道这意味着什么?我之前没有明确地/明知地安装过表,所以也许它在我的本地电脑上不存在?
答案 0 :(得分:2)
来自PyPI的tables
上的模糊:
PyTables建立在HDF5库之上......
因此你必须安装libhdf5。[so / a]库,这也是 在prerequisites中提到。
在Debian(或派生)系统上,您应该可以使用软件包管理器进行安装:
apt-get install libhdf5-dev
(基于yum
的系统搜索yum --enablerepo=epel provides \*/libhdf5.so
)。