【发布时间】:2018-10-09 20:39:52
【问题描述】:
我尝试在 Jupyter notebook 的应用程序中执行这一行。
from tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_sets
我收到以下错误:
.conda/envs/py27/lib/python2.7/site-packages/tensorflow/contrib/__init__.py in <module>()
23
24 # Add projects here, they will show up under tf.contrib.
---> 25 from tensorflow.contrib import batching
26 from tensorflow.contrib import bayesflow
27 from tensorflow.contrib import cloud
ImportError: cannot import name batching
如果我这样运行它,我不会收到此错误:
python -c "from tensorflow.examples.tutorials.mnist import input_data"
谁能告诉我是什么导致了 Jupyter Notebook 中的错误
【问题讨论】:
标签: python tensorflow anaconda jupyter-notebook