tensorflow 头文件报错hdf5版本错误

装完tensorflow2.0版本一直使用正常,然后不知道怎么就同意了更新anaconda, 就出现了header1.10.4和library1.10.5不匹配的问题,百度了很多方法,最后这个有用,非常感谢博主。为了避免再出现忘记,记录一下这也是我第一篇博客呢
pip uninstall h5py
pip install h5py
————————————————
版权声明:本文为CSDN博主「小甜景」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_44735193/article/details/105003622

我显示报错的内容是:

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
  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值