title: Python 3 keras: UnpicklingError: pickle data was truncated for partly downloaded keras cifar10 dataset
body: <p>I need some help to fix my errors. I tried to load the cifar10 dataset and it wasn't able to download completely the first time due to unstable internet, subsequently re-running the code with a stable internet gives this error:</p>
  
  <pre><code>UnpicklingError:                       
  Traceback (most recent call last)
  &lt;ipython-input-16-9117078ebdb2&gt; in &lt;module&gt;()
    1 from keras.datasets import cifar10
  ----&gt; 2 (x_train, y_train), (x_test, y_test) = cifar10.load_data()
  
  c:\users\keboc\anaconda3\envs\tensorflow_1.8\lib\site- 
  packages\keras\datasets\cifar10.py in load_data(label_mode)
   32 
   33     fpath = os.path.join(path, 'test_batch')
  ---&gt; 34     x_test, y_test = load_batch(fpath)
   35 
   36     y_train = np.reshape(y_train, (len(y_train), 1))
  
  c:\users\keboc\anaconda3\envs\tensorflow_1.8\lib\site-packages\keras\datasets\cifar.py in load_batch(fpath, label_key)
   25             d = cPickle.load(f, encoding='bytes')
   26             # decode utf8
  ---&gt; 27             #d_decoded = {}
   28             for k, v in d.items():
   29                 d_decoded[k.decode('utf8')] = v
  
  UnpicklingError: pickle data was truncated
  </code></pre>
  
  <p>I loaded the dataset with the code:</p>
  
  <pre><code>from keras.datasets import cifar10
  (x_train, y_train), (x_test, y_test) = cifar10.load_data() 
  </code></pre>
  
  <p>Please help me to fix this. </p>
  
  <p>Thanks alot.</p>