cannot import name MNIST
prasoonjha opened this issue · comments
ragnar commented
1 get_ipython().system('pip install mnist')
----> 2 from mnist import MNIST
3 data = MNIST(data_dir="data/MNIST/")
ImportError: cannot import name 'MNIST'
ragnar commented
@Hvass-Labs could you please help me out with this issue?
Hvass-Labs commented
It looks like you are trying to install a pip package named mnist. That is wrong. You need to read the installation instructions.
Bobby V commented
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)