0

I am trying to load MNIST data in tensor flow.

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

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

Error:

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>

I am brand new to TF, so any suggestions would be great!

2
  • 1
    Were you connected to internet when running the code? Commented May 6, 2019 at 9:08
  • @MatějRačinský Yes I was. Commented May 6, 2019 at 9:09

1 Answer 1

1

TimeoutResponseError when downloading data are usually caused by common Network issues,
such as:
1. Proxy Setup,
2. Firewall,
3. Company restrictions,
You should investigate on these, because this type of Error can be caused by multiple things

Not the answer you're looking for? Browse other questions tagged or ask your own question.