报错

UserWarning: h5py is running against HDF5 1.12.1 when it was built against 1.12.2, this may cause problems
  _warn(("h5py is running against HDF5 {0} when it was built against {1}, "
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.12.2, library is 1.12.1

试过各种方法:

官网下载.whl文件;

先pip uninstall h5py,再pip install h5py;

安装不同版本;

升级numpy版本;

等等等等

都没有用,其实已经给出了解决方法:

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.12.2, library is 1.12.1

加一行

import os ; os.environ['HDF5_DISABLE_VERSION_CHECK']='2'

完美解决

Python h5py安装 HDF5 library version mismatched error相关推荐

  1. HDF5 library version mismatched error的解决方案

    1.报错信息 Warning! ***HDF5 library version mismatched error*** The HDF5 header files used to compile th ...

  2. Warning! ***HDF5 library version mismatched error***

    这个错误真的是,折磨了我一天. pycharm中遇见了以下这个错误,试了很多办法都没成,后来终于! Warning! ***HDF5 library version mismatched error* ...

  3. BUG:HDF5 library version mismatched error

    今天用keras搭建了一个小的卷积网络,结果在jupyter-notebook中出现这样的错误,并一直要重启服务:在pycharm中也出现了同样的错误. 以下是详细的错误信息,应该是HDF5版本不匹配 ...

  4. 机器学习笔记~HDF5 library version mismatched error与ImportError: 'save_model' requires h5py问题解决

    1. 今天在windows上使用Tensorflow时,出现了下面的问题: 直接执行如下命令,解决: pip uninstall h5py pip install h5py 2. 后续在使用过程中,又 ...

  5. 解决HDF5 library version mismatched error

  6. python hdf5_安装HDF5 1.8 和H5PY--HDF5和python接口

    闲言碎语不讲,直接进入正题.Python在科学计算的应用越来越丰度,而hdf(5)数据的应用也非常广泛.python提供了h5py包供开发者处理数据( http://www.h5py.org/ ).在 ...

  7. 树莓派python中安装numpy,pandas,torch,torchvision失败,ERROR: Could not find a version that satisfies the req

    树莓派python中安装numpy,pandas,torch,torchvision问题 安装失败现象 python通过pip安装torch错误ERROR: Could not find a vers ...

  8. Ubuntu中安装Python h5py

    直接利用 sudo pip install h5py 首先出现没有cython:安装完cython后会提示一个g++错误,这是由于没有安装hdf5:安装完hdf5再安装h5py就能够成功安装. 安装h ...

  9. Python pip install 安装包报错ERROR: Could not find a version that satisfies the requirement XXX解决方法

    Python pip install 安装包报错ERROR: Could not find a version that satisfies the requirement XXX解决方法 文章目录 ...

最新文章

  1. 滴滴大整改:9月8日至15日暂停深夜叫车服务
  2. PHP 连接 MSSQL用port时候的注意事项
  3. oracle24550,ORA-24550 Signal Received Error From Client Based Application
  4. 机器学习中的数学(六)--信息论与激活函数
  5. 子类怎么继承父类方法中的变量_关于继承的那些事!
  6. 利用python os模块搜索指定目录下包含指定字符的文件
  7. 【Elasticsearch】Mapping APIs
  8. IDirectXFileData::GetData 在dx9c中没有了
  9. C# 基础(二十五)WPF/WinForm 控件的句柄是什么意思?
  10. 方方格子授权码_助力上分!灌篮高手正版授权手游礼包码攻略及防守技巧汇总...
  11. 怎么做微信投票小程序_微信小程序里边怎么添加投票活动
  12. linux学习的前期记录
  13. 家用路由器的相关知识和功能
  14. 物联网全景动态图谱2.0|PaaS物联网平台汇总
  15. 仿盛大服务器列表不显示,大刀护卫不见了,传奇GEE引擎服务端大刀没了
  16. 华三离别华为一周年:销售80亿元纳税8亿
  17. MGC Group大公司已布局区块链食品供应链技术领域
  18. Faster-rcnn中Anchor的理解
  19. (进制转换)—— 十六进制转换
  20. 移动互联网时代 移动生活的碎片化解决方案

热门文章

  1. The Rust Programming Language - 第13章 Rust语言中的函数式语言功能:迭代器与闭包 - 13.1 可以捕获其环境的匿名函数
  2. 二维码生成与解析代码实现
  3. mysql启动与登录
  4. 基于css的表单模板
  5. nbextensions安装完不显示,404 GET /static/components/marked/lib/marked.js?v=20230331152041
  6. 经典算法研究系列:七、深入浅出遗传算法
  7. Keil(MDK-ARM)的安装与注册【MDK和C51共存】
  8. 线上展厅视觉奇观 广州商迪
  9. 锐化pdf文件(图片形式)
  10. 基于Tesseract-OCR的空调外包装表面的字符识别