mero
mero

Reputation: 179

I have problem in keras , I have deleted some .py files

I deleted some .py files and some fashion_mnist dataset from several path locations because I had problem in downloading fashion_mnist dataset now there is some .py missing files I got this error:


ImportError Traceback (most recent call last) File C:\ProgramData\Anaconda3\envs\jupyterlab-debugger\lib\site-packages\IPython\core\interactiveshell.py, in run_code: Line 3441: exec(code_obj, self.user_global_ns, self.user_ns)

In [5]: Line 3: from tensorflow import keras

File C:\Users\legion\AppData\Roaming\Python\Python39\site-packages\tensorflow\keras_init_.py, in : Line 19: from . import datasets

File C:\Users\legion\AppData\Roaming\Python\Python39\site-packages\tensorflow\keras\datasets_init_.py, in : Line 13: from . import fashion_mnist

ImportError: cannot import name 'fashion_mnist' from partially initialized module 'tensorflow.keras.datasets' (most likely due to a circular import) (C:\Users\legion\AppData\Roaming\Python\Python39\site-packages\tensorflow\keras\datasets_init_.py)

how to solve this problem? I tried this in the environment that I am using

pip update --all

pip install keras

but the error is still there

problem image

Upvotes: 0

Views: 268

Answers (1)

notNowOnlyCoding
notNowOnlyCoding

Reputation: 315

You can check the data set yourself. If the data set is not found in the path below, the problem will be solved if you download and add it manually.

 C:\Users\Username.keras\datasets

or

C:\Users\Username\AppData\Local\Programs\Python\PythonXX\Lib\site-packages\tensorflow\python\keras\datasets

Keras Mnist Datasets

Upvotes: 1

Related Questions