TensorFlow IOError:[Errno套接字错误] [Errno 104]由对等方重置连接

Lei*_*Lei 2 python-2.7 tensorflow

我已经安装了TensorFlow.当我下载MNISTdataset时,存在一个错误.谁能告诉我什么是错的?非常感谢!错误详情如下:

Python 2.7.9 (default, Apr  2 2015, 15:33:21) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import input_data
>>> mnist = input_data.read_data_sets("MNIST_data/", False, False)
Extracting MNIST_data/train-images-idx3-ubyte.gz
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "input_data.py", line 162, in read_data_sets
    local_file = maybe_download(TRAIN_LABELS, train_dir)
  File "input_data.py", line 22, in maybe_download
    filepath, _ = urllib.request.urlretrieve(SOURCE_URL + filename, filepath)
  File "/usr/lib/python2.7/urllib.py", line 98, in urlretrieve
    return opener.retrieve(url, filename, reporthook, data)
  File "/usr/lib/python2.7/urllib.py", line 245, in retrieve
    fp = self.open(url, data)
  File "/usr/lib/python2.7/urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.7/urllib.py", line 351, in open_http
    errcode, errmsg, headers = h.getreply()
  File "/usr/lib/python2.7/httplib.py", line 1202, in getreply
    response = self._conn.getresponse()
  File "/usr/lib/python2.7/httplib.py", line 1127, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 453, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 409, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
  File "/usr/lib/python2.7/socket.py", line 480, in readline
    data = self._sock.recv(self._rbufsize)
IOError: [Errno socket error] [Errno 104] Connection reset by peer
Run Code Online (Sandbox Code Playgroud)

dga*_*dga 5

Python无法从lecun.com下载MNIST数据集.首先,检查以确保您可以从该计算机浏览Yann LeCun的MNIST页面.如果不能,则可能是防火墙或Internet连接问题.如果可以,请尝试在几分钟内再次运行下载 - 自Tensorflow发布以来,我已经短暂地看到了这个错误,并且它总是在5分钟内消失.