I've been trying to import keras from tensorflow using the following statement:
import tensorflow as tf
from tensorflow import keras
Tensorflow has been updated, it should work as far as I know but I still get the following message:
from tensorflow import keras
ImportError: cannot import name 'keras' from 'tensorflow'(/Users/gabork/PycharmProjects/Tester/venv/lib/python3.7/site-packages/tensorflow/__init__.py)
SOLUTION: I was using Python 3.7 which seems like recent TensorFlow versions do not support and on the other hand, older versions of TensorFlow do not support Keras. For now I’ll either downgrade Python or just import keras.
 
    