【问题标题】:error with hdf5 and tensorflow and python 3.7hdf5、tensorflow和python 3.7出错
【发布时间】:2020-08-06 20:15:11
【问题描述】:

当我导入 tflearn 或 tensorflow 时,我遇到了这个大错误,我已经尝试通过执行 conda install -c anaconda hdf5=1.8.15 来安装和卸载 HDF5,并且此堆栈溢出网页上的所有指令 Warning! ***HDF5 library version mismatched error*** python pandas windows 我的 python 是3.7和IDE是syder

这是错误

{0}.{1}.{2}'.format(*version.hdf5_built_version_tuple)
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 15 2017 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/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe 19.16.27027.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/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe 19.16.27027.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...

感谢您的帮助,我喜欢这个说再见的错误 :-) 即使它是 烦人

【问题讨论】:

  • 您的问题现在解决了吗?否则,请你试试pip install h5py --upgrade --no-dependencies --force
  • 您能否通过上述评论确认错误是否已解决,以便我们可以提及它作为对社区有益的答案。谢谢!
  • 是的,它可以工作,我只是有一个错误模块 'tensorflow' 没有属性 'InteractiveSession' 但这是另一回事,我会找出问题所在,谢谢它现在可以工作了
  • 很高兴,它可以帮助你。

标签: python tensorflow tflearn


【解决方案1】:

在此处(回答部分)提供解决方案,即使它出现在评论部分,也是为了社区的利益。

HDF5 library version mismatched error 已通过以下代码解决

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

【讨论】:

  • @super learner,如果它回答了您的问题,请您接受并投票。谢谢
猜你喜欢
  • 2019-06-11
  • 1970-01-01
  • 1970-01-01
  • 2018-12-16
  • 1970-01-01
  • 1970-01-01
  • 2020-07-02
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多