在tensorflow中处理h5py时,如载入已训练模型时,若面临报错: ‘str’ object has no attribute ‘decode’ 当前h5py版本可能过高,更改h5py版本: pip uninstall h5py pip install h5py==2.10.0