最开始在jupyter中导入tensorflow一直出现 服务似乎挂掉了,但是会立刻重启,但是一直不行,看了网上都说是内存的原因,但是其实不是。然后复制代码到pycharm中运行,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
这种错误,但是总的来说好像是版本不对,直接
pip uninstall h5py
pip install h5py
这样就可用了,jupyter中也能用,在pycharm中也可以使用