PyTorch for Deep Learning Course Problem

I am trying to follow the course by freeCodeCamp on YouTube:https://www.youtube.com/watch?v=GIsg-ZUy0MY&t=11232s
When I try to run the code from 03-logistic-regression, this happen:


I tried to read it through but I have no idea of what is the cause of this error, does anyone know? Thank you in advance~

Since I am a new user, I am only allowed to upload one embedded item each time so here is the rest of the error info

Welcome, Jeff.

That is the most useless error message I think I have ever seen…sorry you have to deal with that.

My best guess would be there is an authentication error between your notebook, and the requested resource. So, either, in order to download whatever you are trying, you need to provide credentials, or only certain IP addresses are allowed access to that resource.

Perhaps, if you can open up the browser devtools, and look for more specific errors in the console or network tab? Otherwise, hopefully others will know more about this.

Hope this helps.

Thanks for your reply, I will try your way first.

I have found a solution for this problem from GitHub.
https://github.com/pytorch/vision/issues/1938?fbclid=IwAR1jQFi-xs_FKMWgHEoaPtyrAy7dmaHqIw4DEH6xZwlb97_XmRtdicTKQtE

So basically you need to copy and paste this snippet at the top of the notebook:

from six.moves import urllib
opener = urllib.request.build_opener()
opener.addheaders = [('User-agent', 'Mozilla/5.0')]
urllib.request.install_opener(opener)
1 Like