ImportError: cannot import name 'LayerNormalization'
I followed all the steps and everything seems to install properly.
However, when I try to import Tensorflow as tf in Jupyter, I get the following
message "ImportError: cannot import name 'LayerNormalization' from
'tensorflow.python.keras.layers.normalization'" I tried to find the solution
online, but didn't manage. I think it might be because you have different
versions in your course. Then I tried to switch to Python 3.7 instead of 3.8
but again nothing. Please help me as I really want to continue learning
I am not exactly sure why you get this error but my suggestion right now is to uninstall and install the TensorFlow package again.
That seems to work for most people.
Let me know if it was fixed or not.
Nikola, 365 Team
I was facing an import-error as well while importing tensorflow. Though the error was different for me (SymbolAlreadyExposedError). I don't know if this would help, but my problem got solved after using the "pip install --upgrade keras" command in the anaconda prompt.