I tried to download an image from the web using Python 3.7. But I got some error in my code and I cannot understand what is wrong in my code and how to recover it. I use PyCharm 3.4 and MacOS X:
My Code:
import urllib.request
urllib.request.urlretrieve("http://www.digimouth.com/news/media/2011/09/google-logo.jpg", "local-filename.jpg")
Error
urllib.error.URLError: <urlopen error [Errno 65] No route to host>