h5py is running against HDF5 1.10.5 when it was built against 1.10.4

点点圈 提交于 2020-02-29 13:57:21
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)

conda安装的tensorflow报这个错误,安装更高版本的hdf5就行,然而conda目前最新就提供1.10.4版本哈哈哈a

找到一个简单的解决办法

pip uninstall h5py
pip install h5py

20200229120946.gif

可能是设置了某个变量吧,和conda默认的变量不一样

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.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!