背景
我在重复hands on machine learning with scikit-learn,keras&tensorflow中的10.2.2中的代码时发现总是报错(我需要下载的数据是fashion-mnist数据集):
Downloading data from https://storage.googleapis.com/tensorflow/tf-keras-datasets/train-labels-idx1-ubyte.gz
---------------------------------------------------------------------------
ConnectionAbortedError Traceback (most recent call last)
c:\users\fanxuezhe\appdata\local\programs\python\python37\lib\urllib\request.py in do_open(self, http_class, req, **http_conn_args)
1316 h.request(req.get_method(), req.selector, req.data, headers,
-> 1317 encode_chunked=req.has_header('Transfer-encoding'))
1318 except OSError as err: # timeout error
c:\users\fanxuezhe\appdata\local\programs\python\python37\lib\http\client.py in request(self, method, url, body, headers, encode_chunked)
1228 """Send a complete request to the server."""
-> 1229 self._send_request(method, url, body, headers, encode_chunked)
1230
c:\users\fanxuezhe\appdata\local\programs\python\python37\lib\http\client.py in _send_request(self, method, url, body, headers, encode_chunked)
1274 body = _encode(body, 'body')
-> 1275 self.endheaders(body, encode_chunked=encode_chunked)
1276
c:\users\fanxuezhe\appdata\local\programs\python\python37\lib\http\client.py