tensorflow中出现ImportError: cannot import name ‘trace‘错误解决方法

from tensorflow_core.examples.tutorials.mnist import input_data
出现ImportError: cannot import name 'trace’错误解决方法在这出现ImportError: cannot import name 'trace'错误解决方法里插入图片描述
步骤一:打开annacomnda Prompt,激活tensorflow,pip list在这里插入图片描述
步骤二:查看tensorflowyu与tensorflow-estimator的版本是否一致。在这里插入图片描述
步骤三:安装输入pip install tensorflow-estimator==1.15.0 安装此版本。在这里插入图片描述

步骤四: 再次查看两种版本是否一致。在这里插入图片描述
成功啦!在这里插入图片描述
成功运行!!

参考资料: CSDN上骑驴去学习的在anaconda下配置tensorflow的环境

猜你喜欢

转载自blog.csdn.net/weixin_45953051/article/details/126218041