AttributeError str object has no attribut 异常错误

AttributeError str object has no attribut 异常错误,第1张

AttributeError str object has no attribut 异常错误

错误情况

# model_config = json.loads(model_config.decode(‘utf-8‘)) 
AttributeError: ‘str‘ object has no attribut

是由于tensorflow2.1.0支持h5py<3.0.0,而在安装tensorflow会自动安装h5py 3.1.0 。
只要运行如下命令即可:

pip install tensorflow h5py == 2.10.0

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5721259.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-18
下一篇 2022-12-18

发表评论

登录后才能评论

评论列表(0条)

保存