解决错误:“AttributeError: ‘str‘ object has no attribute ‘decode‘“ 在安装tenforlow==1.6.0版本情况下,运行的主程序出现的问题。 大概率是h5Py的版本过高,出现了不兼容的问题 解决方案: 首先查看h5Py的版本 conda list 是否为:h5py=2.10.0 如果不是,请将其卸载,并按照相应版本安装。 pip uninstall h5py pip install h5py==2.10.0 OK 问题就解决啦。