Hvass-Labs / TensorFlow-Tutorials

TensorFlow Tutorials with YouTube Videos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot import name MNIST

prasoonjha opened this issue · comments

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

ImportError: cannot import name 'MNIST'

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

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

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)