【发布时间】:2018-09-01 18:28:18
【问题描述】:
我有一个 Python 脚本,其初始行为
from tensorflow.examples.tutorials.mnist import input_data
import tensorflow as tf
当我运行脚本时出现此错误
'没有 tensorflow.tutorials.examples.mnist 等模块'.
我已经 pip 安装了 Tensorflow,我现在该怎么办?
【问题讨论】:
-
您确定 TensorFlow 工作正常吗?请在 Python 中尝试“import tensorflow as tf”,然后是“print(tf.__version__)”。如果出现错误,则可能是您的 TensorFlow 安装存在问题。
-
我卸载重装了,还是一样的错误。我在哪里运行我的脚本?我尝试使用 windows 命令提示符和 python 和 anaconda 命令行,不工作:(
标签: tensorflow mnist