运行TensorFlow程序premade_estimator.py时出错

问题描述 投票:-1回答:1

我在CPU版本中运行tensorFlow,在Windows中运行本机pip。在运行TensorFlow进行检查“Hello TensorFlow”时会输出一些警告。在运行Premade_estimator我遇到了错误:

enter image description here

我怎样才能解决这个问题?

tensorflow tensorflow-estimator
1个回答
0
投票

假设您有最新版本的Tensorflow,它似乎没有正确导入。

当我运行脚本并且在同一文件夹中我已经下载了tensorflow时,我遇到了这个错误,因此在导入“tensorflow”时,它会导入我所在的tensorflow文件夹,而不是安装的tensorflow库。

© www.soinside.com 2019 - 2024. All rights reserved.