I am trying to load the MNIST dataset linked here in Python 3.2 using this program:
import pickle import gzip import numpy with gzip.open(\'mnist.pkl.gz\',
If you are getting this error in python3, then, it could be an incompatibility issue between python 2 and python 3, for me the solution was to load with latin1 encoding:
load
latin1
pickle.load(file, encoding='latin1')