Torchvision mnist IOError: Not a gzipped file

When I run pytorch examples/mnist/main.py, an IOError happened. I didn’t change the python file.


It’s a strange problem. I would appreciated it if someone can help me with this question.
@smth

It might be that the download didn’t complete or was corrupted, or the file isn’t a gzipped file (it looks like it should be, though, from its name).

You could try locating the file and examining it.

Very thanks to your reply! The reason is just what you said and I have already tackled this problem.