'Import "keras.preprocessing.image" and "keras.models" could not be resolved

Good day, i've been trying to deploy my app in streamlit. When I want to do so, i need to run main main.py first. But when I run my main.py it gives me this error. I already have installed keras in my environment beforehand.

Name: keras
Version: 2.9.0
Summary: Deep learning for humans.
Home-page: https://keras.io/
Author: Keras team
Author-email: [email protected]
License: Apache 2.0
Location: c:\python310\lib\site-packages
Requires:
Required-by: tensorflow

Does anyone have any idea what I have done wrong? Thank you!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source