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

Read more here: https://stackoverflow.com/questions/67379877/i-have-problem-in-keras-i-have-deleted-some-py-files

Content Attribution

This content was originally published by mero at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: