Home > Back-end >  Python won't let me import tensorflow.keras even though tensorflow and keras are both installed
Python won't let me import tensorflow.keras even though tensorflow and keras are both installed

Time:06-19

I've installed tensorflow and keras in every possible way I can think of, I have updated pip, used brew, tried a virtualenv but for some reason it won't let me import specific methods from tensorflow.keras (see image). What can I do?

Import issue

CodePudding user response:

from tensorflow.python.keras.models import model_from_json
  • Related