Intro to PyTorch - Quickstart Runtime Error

I’m working through the Introduction to PyTorch available on your website and I copy and pasted all the code for the quickstart to download the training and test data. With the code from this section I keep getting the following error:

File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torchvision/datasets/”, line 99, in init
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torchvision/datasets/”, line 195, in download
raise RuntimeError(f"Error downloading {filename}")
RuntimeError: Error downloading train-images-idx3-ubyte.gz

I’m not quite sure what the issue is and why they’re not downloading. I tried some trouble shooting but nothing seemed to work. Thanks for your help!

Try to delete temporary files in the specified root folder (if there are any) and try to download it again.