解决:AttributeError: module ‘tensorflow‘ has no attribute ‘gfile‘
AttributeError: module ‘tensorflow’ has no attribute ‘gfile’问题原因:出现该问题的最可能的原因为版本过高或者过低,导致gfile方法已经不在tensorflow包中了,或者重新封装到其它类中了解决方法:以我这个项目为例,项目中是tensorflow1.15+版本,那么如果下载的是tensorflow2.x版本的,只需要重新安装tensorflow1.x版本的就行...