This error while downloading datasets: ValueError: I/O operation on closed file
--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Peaceful Mind
--
Chapters
00:00 This Error While Downloading Datasets: Valueerror: I/O Operation On Closed File
01:08 Accepted Answer Score 18
01:35 Thank you
--
Full question
https://stackoverflow.com/questions/3680...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #dataset #theano #keras
#avk47
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Peaceful Mind
--
Chapters
00:00 This Error While Downloading Datasets: Valueerror: I/O Operation On Closed File
01:08 Accepted Answer Score 18
01:35 Thank you
--
Full question
https://stackoverflow.com/questions/3680...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #dataset #theano #keras
#avk47
ACCEPTED ANSWER
Score 18
I tried your exact code and it works fine on my computer. The failure could be due to several reasons, like a unstable internet connection or not enough free space in your home folder.
What you can do is to download the file manually using a download manager, put it in ~/.keras/datasets and rename it to cifar-10-batches-py.tar.gz and run the code again, it should pick up the file and continue processing from there.