The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

says module not found,even after installing pips for tf and sklearn

says module not found,even after installing pips for tf and sklearn

0
Votes
1
Answer
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-917aabef6fe5> in <module>
      1 import numpy as np
      2 import tensorflow as tf
----> 3 from tensorflow.examples.tutorials.mnist import input_data
      4 
      5 # TensorFLow includes a data provider for MNIST that we'll use.

ModuleNotFoundError: No module named 'tensorflow.examples.tutorials'
1 Answer

365 Team
0
Votes

Hi nandish, 
The issue might be caused due to a version of tensorflow. Apparently there is a problem with tensorflow v. 2. opening some example. What you could try is the following:
Instead of

from tensorflow.examples.tutorials.mnist import input_data

try:
import tensorflow_datasets as tf
# Construct a tf.data.Dataset
dataset = tf.load(name="mnist", split=tf.Split.TRAIN)

Alternatively, you could try reverting to v.1 of tensorflow and see if that raises any issues.

Best,
365 Eli