Notifications
Clear all
Build a Stock Prediction Portal – Django, React & Machine Learning
1
Posts
2
Users
0
Reactions
248
Views
0
18/03/2025 11:16 pm
Topic starter
Hello, I’m at video 180, and I’m unable to import Keras in the line "from keras.models import load_model"
. I installed Keras 3.9, but it requires TensorFlow, and TensorFlow is not compatible with Python 3.13, which I have on my system and which was used for the training up to video 180.
Do you have a solution? Or do I need to install Python 3.11 and recreate the virtual environment, reinstall npm, Vite, and all the libraries, etc.?
Thanks,
Emmanuel
1 Answer
0
19/03/2025 11:18 am
Since TensorFlow does not currently support Python 3.13, you need to recreate a virtual environment with Python 3.11. This is the most reliable solution, as other methods may not work properly. Recreating the environment ensures compatibility and avoids potential issues.