Tensorflow: No module named contrib.learn.python.learn.datasets.mnist
<pre><code>import tensorflow as tf
from tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_sets
</code></pre>

<p>I tried executing the above and I am getting the below error:</p>

<pre><code>ImportError: No module named contrib.learn.python.learn.datasets.mnist
</code></pre>

<p>I did <code>sudo pip show tensorflow</code>.
The location showed <code>/usr/local/lib/python2.7/dist-packages</code></p>

<p>So, I appended /usr/local/lib/python2.7/dist-packages to sys.path. But still getting the same error.</p>

<p>I'm not able to use anything from contrib.</p>

<p><code>training_set = tf.contrib.learn.datasets.base.load_csv(filename=IRIS_TRAINING, target_dtype=np.int)</code></p>

<p><code>AttributeError: 'module' object has no attribute 'contrib'</code></p>

<p>Could somebody please help me? Thanks in advance.</p>