Я установил весь пакет tenorflow через pip install tenorflow. Я пытался реализовать fashion_mnist. Когда я запускал программу с командной строкой «cmd», ошибка постоянно всплывает,
Я уже пытался переустановить tenorflow.
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
from tensorflow import keras
fashion_mnist = keras.datasets.fashion_mnist
(train_images, train_labels), (test_images, test_labels) =\
fashion_mnist.load_data()
print(train_images.shape)
print(train_images[1].shape)
Конкретное сообщение об ошибке::
Traceback (most recent call last):
File "D:\20191031\keras1.py", line 10, in <module>
fashion_mnist.load_data()
File "C:\Users\Pyogeun\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\keras\datasets\fashion_mnist.py", line 59, in load_data
imgpath.read(), np.uint8, offset=16).reshape(len(y_train), 28, 28)
File "C:\Users\Pyogeun\AppData\Local\Programs\Python\Python37\lib\gzip.py", line 276, in read
return self._buffer.read(size)
File "C:\Users\Pyogeun\AppData\Local\Programs\Python\Python37\lib\gzip.py", line 482, in read
raise EOFError("Compressed file ended before the "
EOFError: Compressed file ended before the end-of-stream marker was reached