python - 在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 中工作?
谢谢。
解决方案
推荐阅读
- regex - Tcl 在多行上拆分正则表达式
- qt - 当 QLineEdit 失焦时,QLineEdit 聚焦时启动的 QProcess 是否可以终止?
- json - 如何在fluter上的Firestore中序列化/建模模型json数据
- html - 如何调整 React Bootstrap 的 Carousel 以按比例调整大小?
- python - 如何在Django中处理上传的excel文件
- r - 变量选择,使用 glmmLasso 包中的 glmmLasso() 函数处理多重共线性
- laravel - Laravel Passport - 将默认未经身份验证的响应更改为自定义响应
- python - 为什么我的模型训练减少而验证不减少,训练准确度增加而验证准确度不增加?
- java - 查看mongo DB中已经执行的查询
- python - x_train /= 255.0 和 x_train = x_train/255.0 之间的标准化差异