1. AttributeError: ‘tuple’ object has no attribute ‘type’
为了学习tensorflow Eager 把tensorflow 更新到1.12.0,结果在导入的时候报错:
AttributeError: ‘tuple’ object has no attribute ‘type’
一开始以为是tensorflow的原因,卸载之后换了其他版本,依然报错。
仔细看了报错信息,发现是numpy的原因,import numpy 会报同样的错。
所以,卸载numpy 重装,原错解决,出现了新的报错。
2. ModuleNotFoundError: No module named ‘keras_applications’
Google错误信息,找到解决方法:https://github.com/tensorflow/tensorflow/issues/21518
完美解决。
同一个页面下,另一个回答:
除了前两个还需安装 h5py