Tensorflow 加载Mnist数据

Tensorflow 加载Mnist数据,tensorflow,tensorflow-datasets,Tensorflow,Tensorflow Datasets,我试图在张量流中加载MNIST数据 import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) 错误: URLError: <urlopen error [WinError 10060] A connection attempt failed because

我试图在张量流中加载MNIST数据

import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data

mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
错误:

URLError: <urlopen error [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>
URLError:

我是TF的新手,所以任何建议都会很好

下载数据时超时响应错误通常由常见的网络问题引起,
例如:
1.代理设置,
2.防火墙,
3.公司限制,

您应该对此进行调查,因为这类错误可能是由多种原因造成的

您在运行代码时是否连接到internet?@MatějRačinskýYes I was。