当遇到HDF5 library version mismatched error时,问题源于Python环境中的HDF5版本(1.10.4)与HDF5库版本(1.10.5)不一致。解决方法包括安装版本匹配的HDF5库,修改LD_LIBRARY_PATH,或通过conda更新HDF5到1.10.5,并可能需借助第三方源。设置HDF5_DISABLE_VERSION_CHECK为1也可避免警告,但可能不是最佳选择。
摘要由CSDN通过智能技术生成
HDF5报错:HDF5 library version mismatched error
报错信息
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
&