ImportError: No module named examples.tutorials.mnist

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/kevinew/article/details/51722682
Traceback (most recent call last):
  File "nearest_neighbor.py", line 14, in <module>
    from tensorflow.examples.tutorials.mnist import input_data

ImportError: No module named examples.tutorials.mnist

安装的tensorflow升级版本后就OK了,     0.8.0 -> 0.9.0 


sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl 

sudo  pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/protobuf-3.0.0b2.post2-cp27-none-linux_x86_64.whl

展开阅读全文

没有更多推荐了,返回首页