2016-08-08 252 views
0
[[email protected] 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/ 

有沒有人知道這意味着什麼?我之前沒有明確/已知的安裝表,所以也許它不存在於我的本地PC上?無法安裝python軟件包表

回答

1

從PyPI上的tables的blurp:

PyTables是建立在HDF5庫頂...

因此,你必須有libhdf5 [這麼/ A]庫安裝,這也是prerequisites中提到的 。

在Debian(或派生)系統,你應該能夠與你的包管理器安裝:

apt-get install libhdf5-dev 

(上yum的系統的東西,如yum --enablerepo=epel provides \*/libhdf5.so搜索)。