我用的是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
文件任何一个。
最佳答案
编辑:由于下面的 PR 已合并,pytables 可用于
conda install -c conda-forge pytables
此外,此包在默认 channel 中可用,但仅适用于 numpy 1.11。
pip 是一种非常困难的排列方式。更好的方法可能是构建一个 pytables 包。这样做的一种努力是在 https://github.com/conda-forge/staged-recipes/pull/1134
Conda 打包使得排列所有库依赖项变得更加容易。从本质上讲,它允许构建的负担集中起来,因此并不是每个安装某些东西的人都需要知道如何构建它。
Conda forge 是一项社区工作,旨在协作打包我们的生态系统。
关于python - 如何在 anaconda 上安装 pytables 3.2?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30837135/