ModuleNotFoundError:没有名为“tensorflow.compat"的模块

问题描述:

未找到张量流模块

keras 和 tensorflow 的版本

我只是想知道为什么它不起作用.,因为我通读了线程但仍然不起作用.

I just want to know why it doesn't work., Because I read through the threads but still not working.

运行:

pip install --upgrade tensorflow-gpu==2.2.0 --user
pip uninstall tensorflow-datasets
pip install tensorflow-datasets==4.0.0

并重新连接 google colab.

And reconnect google colab.