首页 > 解决方案 > 在python中使用代理下载MNIST

问题描述

我得到错误:

Exception: URL fetch failure on https://s3.amazonaws.com/img-datasets/mnist.npz: None -- [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

尝试使用命令时mnist.load_data()

我使用的是工作代理,所以当我https://s3.amazonaws.com/img-datasets/mnist.npz在浏览器中导航到 URL 时,它可以工作。

有什么方法可以mnist.load通过代理在 Python 中工作?

谢谢。

标签: pythonproxyjupyter-notebookpython-3.6mnist

解决方案


推荐阅读