2015-06-15 116 views
6

我使用Anaconda,並與如何在anaconda上安裝pytables 3.2?

conda update pytables 

它說:「已安裝」我不能升級。

.... 
# All requested packages already installed. 
# packages in environment at C:\Anaconda: 
# 
pytables     3.1.1    np19py27_1 

然後我試圖PIP:

C:\Users\HP>pip install --upgrade tables 
Collecting tables 
    Using cached tables-3.2.0.tar.gz 
    Complete output from command python setup.py egg_info: 
    H5closecfvx_f.c 
    r:\temp\H5closecfvx_f.c(2) : warning C4013: 'H5close' undefined; assuming ex 
tern returning int 
    LINK : fatal error LNK1181: cannot open input file 'hdf5dll.lib' 
    * Using Python 2.7.3 |Anaconda 2.2.0 (32-bit)| (default, Feb 25 2013, 18:26: 
30) [MSC v.1500 32 bit (Intel)] 
    * USE_PKGCONFIG: False 
    .. 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 r:\temp\pip-build 
-rxtig1\tables 

我搜索我的硬盤,並且無法找到hdf5dll.lib文件。 然後,我下載了最新的HDF5-1.8.15 Patch1,並將HDF5_DIR指向已安裝的目錄,仍然是相同的錯誤,並且新安裝的HDF5目錄中也沒有hdf5dll.lib文件。

回答

1

編輯:由於在PR下面被合併,pytables是可用

conda install -c conda-forge pytables 

此外,該包是在信道的默認值可用,但只爲numpy的1.11。


點是一個很難排隊的方法。更好的方法可能是構建一個pytables包。一個這樣做的努力是在https://github.com/conda-forge/staged-recipes/pull/1134

conda包裝使排列所有庫依賴關係更容易。它基本上允許構建的負擔集中化,以便安裝某些東西的每個人都不需要知道如何構建它。

康達鍛造是一個社區努力協作包裝我們的生態系統。