Reputation: 179
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
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
Upvotes: 0
Views: 268
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
Upvotes: 1