【问题标题】:Pytables 2.3.1 with Python 2.5 on Windows: Error - could not find a local hdf5 installation在 Windows 上使用 Python 2.5 的 Pytables 2.3.1:错误 - 找不到本地 hdf5 安装
【发布时间】:2012-04-06 11:37:13
【问题描述】:

我正在尝试使用 Python 2.5 在 Windows XP 上安装 PyTables 2.3.1。我收到以下错误:

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.

我对 HDF5 库的安装有点困惑。我从HDF5 site 下载了名为HDF5188-win32-shared.zip 的Windows 二进制文件,并运行了zip 存档中的.exe 文件。我现在在这个文件夹中安装了 HDF5 库:

C:\Program Files\HDF Group\HDF5\1.8.8

我已经尝试创建一个名为 HDF5_DIR 的环境变量指向这个文件夹,但仍然没有乐趣。我显然没有安装正确的 HDF5 库,但我不知道应该做什么。

请问大家有什么建议吗?

谢谢!

【问题讨论】:

    标签: python pytables


    【解决方案1】:

    您可以从docs 尝试: 放置 DLL 库(hdf5dll.dll 和可选的 lzo1.dll 和 bzip2.dll)

    在您的 PATH 环境变量中列出的目录中

    。如果找不到库,setup.py 安装程序将打印出警告。

    定位

    hdf5dll.dll

    并确保 dir 包含它在 PATH 变量中,或者您可以尝试 --hdf5=path/to/ 命令

    【讨论】:

    • 谢谢。看起来我下载了错误版本的 HDF5 库。上面提到的win32-shared.zip 好像没有hdf5dll.dll。我下载了一个不同的版本,现在一切正常。干杯!
    • @JamesS:我也有同样的问题。您能否添加指向包含 hdf5dll.dll 的不同版本的链接?谢谢
    猜你喜欢
    • 2015-05-07
    • 2015-04-28
    • 2017-09-22
    • 2015-10-21
    • 2012-10-15
    • 2019-01-21
    • 2012-06-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多