1. 程式人生 > >TensorFlow下載mnist錯誤:urllib.error.URLError:

TensorFlow下載mnist錯誤:urllib.error.URLError:

錯誤的原因是下載源不對,在原始碼中修改即可,修改的位置在

anaconda3/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py

修改位置為:

# CVDF mirror of http://yann.lecun.com/exdb/mnist/
# DEFAULT_SOURCE_URL = 'https://storage.googleapis.com/cvdf-datasets/mnist/'
DEFAULT_SOURCE_URL = 'http://yann.lecun.com/exdb/mnist/'