> 文章列表 > cannot import name ‘dtensor‘ from ‘tensorflow.compat.v2.experimental‘

cannot import name ‘dtensor‘ from ‘tensorflow.compat.v2.experimental‘

cannot import name ‘dtensor‘ from ‘tensorflow.compat.v2.experimental‘

发生错误的原因是安装的tensorflow版本与Keras版本不一致

卸载已有的keras版本,重新下载

tensorflow与keras版本对照

https://www.cnblogs.com/-yhwu/p/14619541.html

tensorflow最新版本与keras版本对应_tensorflow和keras版本对应_未来可 欺的博客-CSDN博客