Error is there while importing pathlib library


ImportError Traceback (most recent call last)
in
----> 1 from pathlib import path
2 from keras.preprocessing import image

ImportError: cannot import name ‘path’ from ‘pathlib’ (C:\ProgramData\Anaconda3\lib\pathlib.py)

Hey @Aashi-Agarwal-2380268668952871, try out
from pathlib import Path,

Hope this resolved your doubt.
Remember to Mark it as resolved as well :blush:

ModuleNotFoundError Traceback (most recent call last)
in
1 from pathlib import Path
----> 2 from keras.preprocessing import image

ModuleNotFoundError: No module named ‘keras’

again an error

Hey @Aashi-Agarwal-2380268668952871, install keras as well,

pip install keras

Hope this resolved your doubt.
Remember to Mark it as resolved as well :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.