【发布时间】:2016-08-28 09:08:11
【问题描述】:
我刚刚开始使用 Tensorflow,我已经用我的 test.py 文件完成了“hello world”。继续下一步,我开始做教程(https://www.tensorflow.org/versions/master/tutorials/mnist/beginners/index.html)。 这就是我所做的
$ git clone https://github.com/tensorflow/tensorflow
并运行“fully_connected_feed.py”文件
python tensorflow/examples/tutorials/mnist/fully_connected_feed.py
我得到了类似的错误
Traceback(最近一次调用最后一次):
文件“tensorflow/examples/tutorials/mnist/fully_connected_feed.py”,
第 27 行,在
从 tensorflow.examples.tutorials.mnist 导入输入数据
ImportError: 没有名为 examples.tutorials.mnist 的模块
所以我从
更改了代码从 tensorflow.examples.tutorials.mnist 导入输入数据
从 tensorflow.examples.tutorials.mnist 导入 mnist
到
导入输入数据
导入mnist
但我又遇到了错误。
Traceback(最近一次调用最后一次):
文件“tensorflow/examples/tutorials/mnist/fully_connected_feed.py”,第 27 行,在
导入输入数据 文件
“/Users/naggi/Documents/ML/tensorflow/tensorflow/examples/tutorials/mnist/input_data.py”,第 29 行,在
从 tensorflow.contrib.learn.python.learn.datasets.mnist 导入 read_data_sets
ImportError: 没有名为 contrib.learn.python.learn.datasets.mnist 的模块
有人可以帮我吗? 谢谢
【问题讨论】:
标签: python python-2.7 tensorflow