'ModuleNotFoundError: No module named 'tensorflow.compat'

tensorflow module not found

version of keras and tensorflow

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



Solution 1:[1]

Run?

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

And reconnect google colab.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Grayrigel