当前位置: 首页 > 工具软件 > GFile > 使用案例 >

解决:AttributeError: module ‘tensorflow‘ has no attribute ‘gfile‘

慕迪
2023-12-01

AttributeError: module ‘tensorflow’ has no attribute ‘gfile’

问题原因:

出现该问题的最可能的原因为版本过高或者过低,导致gfile方法已经不在tensorflow包中了,或者重新封装到其它类中了

解决方法:

以我这个项目为例,项目中是tensorflow1.15+版本,那么如果下载的是tensorflow2.x版本的,只需要重新安装tensorflow1.x版本的就行

 类似资料: