Hvass-Labs / TensorFlow-Tutorials

TensorFlow Tutorials with YouTube Videos
MIT License
9.28k stars 4.19k forks source link

cannot import name MNIST #91

Closed prasoonjha closed 5 years ago

prasoonjha commented 5 years ago

1 get_ipython().system('pip install mnist') ----> 2 from mnist import MNIST 3 data = MNIST(data_dir="data/MNIST/")

ImportError: cannot import name 'MNIST'

prasoonjha commented 5 years ago

@Hvass-Labs could you please help me out with this issue?

Hvass-Labs commented 5 years ago

It looks like you are trying to install a pip package named mnist. That is wrong. You need to read the installation instructions.

bobvo23 commented 5 years ago

you have to clone his github repo instead:

import os work_dir = "/content/TensorFlow-Tutorials/" if os.getcwd() != work_dir: !git clone https://github.com/Hvass-Labs/TensorFlow-Tutorials os.chdir(work_dir)