运行python报错,Warning! ***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 contin
This can happen when an application was compiled by one version of HDF5 bu
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.8.15, library is 1.8.20

根据报错内容,调整library的版本,输入:

conda install -c anaconda hdf5=1.8.15

 运行完毕之后,就可以正常运行python文件了

运行python报错,Warning! ***HDF5 library version mismatched error***_第1张图片

 

你可能感兴趣的:(运行python报错,Warning! ***HDF5 library version mismatched error***)