str object has no attribute decode(keras,tensorflow)

在运行 keras 或者是 tensorflow的keras模块的时候总是回提示标题那句话。
看其他博主的博客,是h5py模块版本过高的原因。
处理方法:
卸载这个高版本模块:

pip uninstall h5py

安装低版本:

pip install h5py==2.10 -i https://pypi.tuna.tsinghua.edu.cn/simple/

猜你喜欢

转载自blog.csdn.net/ALZFterry/article/details/113817404