FashionMNIST数据获取失败

OS:windows7
source:python3

from mxnet import gluon
from mxnet import ndarray as nd

def transform(data, label):
return data.astype("float32")/255, label.astype("float32")

mnist_train = gluon.data.vision.FashionMNIST(train=True, transform=transform)
mnist_test = gluon.data.vision.FashionMNIST(train=False, transform=transform)

Error:
ConnectionError: HTTPSConnectionPool(host=‘apache-mxnet.s3-accelerate.dualstack.amazonaws.com’, port=443): Max retries exceeded with url: /gluon/dataset/fashion-mnist/train-images-idx3-ubyte.gz (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x000000000E7F3D68>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。’,))

看起来是被墙了,解决方法见:

是ssl的问题。可以参看openssl