关键环境 tensorflow1.5keras2.1.6h5py3.1 详细的错误内容 AttributeError: 'str' object has no attribute 'decode' 解决方法 h5py版本太高的原因,作如下修改 pip uninstall h5py pip install h5py==2.1.0 注意2.1.0版本是可以的,其它版本也可能可以,没有继续尝试