python-3.x - 如何在 Windows 10 上安装 HDF5 版本 1.10.5

标签 python-3.x hdf5

我正在使用 pycharm 2019.2,在尝试运行此代码时出现以下错误:

import nltk
import numpy
import tflearn
import tensorflow
import random
import json

from nltk.stem.lancaster import LancasterStemmer
stemmer = LancasterStemmer()


with open("intents.json") as file:
    data = json.load(file)

print(data)

错误:

Warning! ***HDF5 library version mismatched error***
The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked.
Data corruption or segmentation faults may occur if the application continues.
This can happen when an application was compiled by one version of HDF5 but
linked with a different version of static or shared HDF5 library.
You should recompile the application or check your shared library related
settings such as 'LD_LIBRARY_PATH'.
You can, at your own risk, disable this warning by setting the environment
variable 'HDF5_DISABLE_VERSION_CHECK' to a value of '1'.
Setting it to 2 or higher will suppress the warning messages totally.
Headers are 1.10.4, library is 1.10.5
        SUMMARY OF THE HDF5 CONFIGURATION
        =================================

General Information:
-------------------
                   HDF5 Version: 1.10.5
                  Configured on: 2019-03-04
                  Configured by: Visual Studio 14 2015 Win64
                    Host system: Windows-10.0.17763
              Uname information: Windows
                       Byte sex: little-endian
             Installation point: C:/Program Files/HDF5

Compiling Options:
------------------
                     Build Mode: 
              Debugging Symbols: 
                        Asserts: 
                      Profiling: 
             Optimization Level: 

Linking Options:
----------------
                      Libraries: 
  Statically Linked Executables: OFF
                        LDFLAGS: /machine:x64
                     H5_LDFLAGS: 
                     AM_LDFLAGS: 
                Extra libraries: 
                       Archiver: 
                         Ranlib: 

Languages:
----------
                              C: yes
                     C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe 19.0.24218.1
                       CPPFLAGS: 
                    H5_CPPFLAGS: 
                    AM_CPPFLAGS: 
                         CFLAGS:  /DWIN32 /D_WINDOWS /W3
                      H5_CFLAGS: 
                      AM_CFLAGS: 
               Shared C Library: YES
               Static C Library: YES

                        Fortran: OFF
               Fortran Compiler:  
                  Fortran Flags: 
               H5 Fortran Flags: 
               AM Fortran Flags: 
         Shared Fortran Library: YES
         Static Fortran Library: YES

                            C++: ON
                   C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe 19.0.24218.1
                      C++ Flags: /DWIN32 /D_WINDOWS /W3 /GR /EHsc
                   H5 C++ Flags: 
                   AM C++ Flags: 
             Shared C++ Library: YES
             Static C++ Library: YES

                            JAVA: OFF
                   JAVA Compiler:  

Features:
---------
                   Parallel HDF5: OFF
Parallel Filtered Dataset Writes: 
              Large Parallel I/O: 
              High-level library: ON
                    Threadsafety: OFF
             Default API mapping: v110
  With deprecated public symbols: ON
          I/O filters (external):  DEFLATE DECODE ENCODE
                             MPE: 
                      Direct VFD: 
                         dmalloc: 
  Packages w/ extra debug output: 
                     API Tracing: OFF
            Using memory checker: OFF
 Memory allocation sanity checks: OFF
          Function Stack Tracing: OFF
       Strict File Format Checks: OFF
    Optimization Instrumentation: 
Bye...

Process finished with exit code -1073740791 (0xC0000409)

我正在使用 python 3.6,并且已经使用 pip 和 conda 安装下载了 HDF5 1.10.5。但是当我输入我的 anaconda python 配置时,最高可用的 HDF5 版本是 1.10.4,从这个错误消息我想我需要有 1.10.5 版本才能正常运行。 我想知道如何下载HDF5 1.10.5以便我可以正常运行代码。

最佳答案

我无法使用 conda 获得正确的版本,但对我来说它可以做到

pip install h5py --upgrade --no-dependencies --force

关于python-3.x - 如何在 Windows 10 上安装 HDF5 版本 1.10.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58039297/

相关文章:

python - Keras属性错误: 'Tensor' object has no attribute 'log'

python - Pandas:获取具有列值的行并用另一个值更新注释列

python - 用于读取行的最佳 HDF5 数据集 block 形状

python - 由于 hdf5 错误,无法安装库

python - LZF 压缩阵列的 HDF5 查看器

python - 如何有效地设置包含未知数据量的HDF5文件?

python - 图形库API

python - PYQT Graphics 查看图像的像素值

python - 对于我在范围内(开始,停止,步骤)Python 3

python - 在 Python 中将分层 pandas DatetimeIndex 保存到 hdf5 时丢失时区感知