【问题标题】:How to install pytables 3.2 on anaconda?如何在 anaconda 上安装 pytables 3.2?
【发布时间】:2015-06-15 03:57:42
【问题描述】:

我使用 anaconda,但无法升级

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文件。

【问题讨论】:

    标签: python installation anaconda pytables


    【解决方案1】:

    编辑:由于下面的 PR 已合并,pytables 可用于

    conda install -c conda-forge pytables
    

    此外,此包在默认频道中可用,但仅适用于 numpy 1.11。


    pip 是一种非常困难的排列方式。更好的方法可能是构建一个 pytables 包。这样做的一项努力是https://github.com/conda-forge/staged-recipes/pull/1134

    Conda 打包使排列所有库依赖项变得更加容易。它本质上允许集中构建负担,因此并非每个安装某些东西的人都需要知道如何构建它。

    Conda forge 是一个社区努力协作打包我们的生态系统。

    【讨论】:

      猜你喜欢
      • 2015-05-07
      • 2017-07-25
      • 2017-06-26
      • 2019-07-11
      • 1970-01-01
      • 2012-06-16
      • 1970-01-01
      • 2021-05-29
      • 2019-01-26
      相关资源
      最近更新 更多