如何降级使用Tensorflow-gpu安装的hdf5 [英] How to downgrade hdf5 installed with tensorflow-gpu

查看:203
本文介绍了如何降级使用Tensorflow-gpu安装的hdf5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我尝试在 https://www.youtube.com上安装tensorflow-gpu/watch?v = tPq6NIboLSc 此视频

但是当我尝试导入tensorflow(或keras)时,我的内核死了,并给出以下错误消息.

But when I try to import tensorflow (or keras) my kernal dies giving following error message.

C:\Users\ovin\Anaconda3\envs\GPU\lib\site-packages\h5py\__init__.py:40: UserWarning: h5py is running against HDF5 1.10.5 when it was built against 1.10.4, this may cause problems

'{0}.{1}.{2}'.format(* version.hdf5_built_version_tuple)警告! HDF5库版本不匹配错误 用于编译此应用程序的HDF5头文件不匹配该应用程序链接到的HDF5库使用的版本.如果应用程序继续,则可能会发生数据损坏或分段错误.当应用程序由一个版本的HDF5编译时会发生这种情况,但是与其他版本的静态或共享HDF5库链接.您应该重新编译应用程序或检查与您的共享库相关的设置,例如"LD_LIBRARY_PATH".您可以自行承担风险,通过设置环境来禁用此警告变量"HDF5_DISABLE_VERSION_CHECK"的值设置为"1".设置为2或更高将完全抑制警告消息.标头为1.10.4,库为1.10.5HDF5配置摘要================================

'{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 =================================

               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

编译选项:

                 Build Mode:
          Debugging Symbols:
                    Asserts:
                  Profiling:
         Optimization Level:

链接选项:

                  Libraries:

静态链接的可执行文件:OFFLDFLAGS:/machine:x64H5_LDFLAGS:AM_LDFLAGS:额外的库:封存者:Ranlib:

Statically Linked Executables: OFF LDFLAGS: /machine:x64 H5_LDFLAGS: AM_LDFLAGS: Extra libraries: Archiver: Ranlib:

                          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:

功能:

               Parallel HDF5: OFF

并行过滤的数据集写入:大型并行I/O:高级库:开线程安全:关闭默认API映射:v110带有已弃用的公共符号:开I/O过滤器(外部):DEFLATE DECODE ENCODEMPE:直接VFD:dmalloc:带有额外调试输出的软件包:API追踪:关闭使用内存检查器:关闭内存分配完整性检查:OFF功能堆栈跟踪:关闭严格的文件格式检查: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...

已经尝试过的东西,

  • 我选择了正确的内核
  • 试图卸载并安装hdf5 = 1.10.4版本
  • 更新了conda环境

推荐答案

我不熟悉C语言,因为我正在使用Python.但是我通过使用Anaconda安装以前的版本解决了这个问题.

I'm not familiar with C Language as I am using Python. But I resolved this with installing the previous version using Anaconda.

conda install -c conda-forge hdf5=1.10.4

这篇关于如何降级使用Tensorflow-gpu安装的hdf5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆