TensorFlow报错No module named 'tensorflow_backend,如何解决?

TensorFlow运行问题。报错No module named 'tensorflow_backend'

版本是:python3.9.18+tensorflow2.7+keras2.7+cuda11.5.2+cudnn8.3.2,请问如何修改,非常感谢。

img

很明显,是版本依赖问题,检查一下你的代码来源,确定是那个版本的TensorFlow

你用的什么平台运行的呀!

【相关推荐】



  • 这篇博客: Tensorflow坑之:ImportError: Could not find ‘cudnn64_7.dll‘.中的 问题描述: 部分也许能够解决你的问题, 你可以仔细阅读以下内容或跳转源博客中阅读:

    ImportError: Could not find ‘cudnn64_7.dll’. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Note that installing cuDNN is a separate step from installing CUDA, and this DLL is often found in a different directory from the CUDA DLLs. You may install the necessary DLL by downloading cuDNN 7 from this URL: https://developer.nvidia.com/cudnn


如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^