***已解决,报错信息:HDF5 library version mismatched error***

已解决,报错信息:HDF5 library version mismatched error

上篇文章说到,检验tensorflow-gpu安装成功的方法,已经验证成功,运行了并显示了正确的内容,但是第二天就出现了这样的错误。
报错信息如下所示:

2020󈚪󈚬 17:31:18.915018: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
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
  1. 查找资料,开始按照网上的步骤进行解决
  2. 好多资料中说,使用conda install -c anaconda hdf5=1.10.4解决这个问题,尝试了一下,不能解决我的问题,重新运行依旧会出现Headers are 1.10.4, library is 1.10.5这个错误提示;
  3. 尝试先输入activate tensorflow,激活tensorflow,然后再输入conda install -c anaconda hdf5=1.10.4,未解决,依旧报错;
  4. 尝试在anaconda上进行版本升级,再次运行程序,未解决,出现kernel died restarting;
  5. 最终找到了新的方法,先输入pip uninstall h5py指令,然后再输入pip install h5py最终解决了这个问题;我找到的这个方法并参考的网址为:https://blog.csdn.net/qq_44735193/article/details/105003622

总结

先输入pip uninstall h5py指令,然后再输入pip install h5py

  • 4
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值