ModuleNotFoundError:没有名为“tensorflow.compat"的模块 [英] ModuleNotFoundError: No module named 'tensorflow.compat'
本文介绍了ModuleNotFoundError:没有名为“tensorflow.compat"的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只是想知道为什么它不起作用.,因为我通读了线程但仍然不起作用.
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.
这篇关于ModuleNotFoundError:没有名为“tensorflow.compat"的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文