TensorFlow實(shí)戰(zhàn)|識(shí)別手寫數(shù)字報(bào)錯(cuò)紀(jì)錄

1.輸入“mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)”
報(bào)錯(cuò):大概就是網(wǎng)頁找不到云云
Extracting MNIST_data/train-images-idx3-ubyte.gz
Traceback (most recent call last):

File "<ipython-input-4-6f78a56b35f2>", line 1, in <module>
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)

File "/Users/xuyizhou/anaconda3/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 240, in read_data_sets
SOURCE_URL + TRAIN_LABELS)

File "/Users/xuyizhou/anaconda3/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 208, in maybe_download
temp_file_name, _ = urlretrieve_with_retry(source_url)

File "/Users/xuyizhou/anaconda3/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 165, in wrapped_fn
return fn(*args, **kwargs)

File "/Users/xuyizhou/anaconda3/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 190, in urlretrieve_with_retry
return urllib.request.urlretrieve(url, filename)

File "/Users/xuyizhou/anaconda3/lib/python3.6/urllib/request.py", line 248, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:

File "/Users/xuyizhou/anaconda3/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)

File "/Users/xuyizhou/anaconda3/lib/python3.6/urllib/request.py", line 526, in open
response = self._open(req, data)

File "/Users/xuyizhou/anaconda3/lib/python3.6/urllib/request.py", line 544, in _open
'_open', req)

File "/Users/xuyizhou/anaconda3/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)

File "/Users/xuyizhou/anaconda3/lib/python3.6/urllib/request.py", line 1361, in https_open
context=self._context, check_hostname=self._check_hostname)

File "/Users/xuyizhou/anaconda3/lib/python3.6/urllib/request.py", line 1320, in do_open
raise URLError(err)

URLError: <urlopen error [Errno 60] Operation timed out>
解決方法:科學(xué)上網(wǎng)(如此神奇的錯(cuò)還是第一次見,1024程序猿節(jié)吐血中)

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容