Open zhangxc666 opened 1 year ago
我使用2.4的版本,运行C2_W2_Lab02报错AttributeError: module 'tensorflow.keras.layers' has no attribute 'Normalization',升级版本到2.6又继续报这个cannot import name 'dtensor' from 'tensorflow.compat.v2.experimental' `错误。正确的TensorFlow版本应该是多少,requirement.txt里面也没有。
AttributeError: module 'tensorflow.keras.layers' has no attribute 'Normalization',升级版本到2.6又继续报这个
版本太高了,如果你使用的python是3.7.6版本的话,直接使用pip安装应该得到的是2.11版本
本人测试通过版本: python 3.9.10 tensorflow 2.8.0 keras 2.8.0 protobuf 3.20.0
我使用2.4的版本,运行C2_W2_Lab02报错
AttributeError: module 'tensorflow.keras.layers' has no attribute 'Normalization',升级版本到2.6又继续报这个
cannot import name 'dtensor' from 'tensorflow.compat.v2.experimental' `错误。正确的TensorFlow版本应该是多少,requirement.txt里面也没有。