AttributeError: module ‘tensorflow.keras‘ has no attribute ‘datasets‘

AttributeError: module ‘tensorflow.keras‘ has no attribute ‘datasets‘,第1张


当碰到此问题
首先查看是否安装了tensorflow(可以pip list下查看)
若还是有问题
activate tf(你的环境)
输入python
尝试在python运行 成功执行下面的不成功继续安装
当开jupyter notebook时 你需要【敲重点!!!】切换内核

切换你安装tensorflow的地方

成功!!!

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/905337.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-15
下一篇2022-05-15

发表评论

登录后才能评论

评论列表(0条)

    保存