Last answered:

09 Dec 2021

Posted on:

08 Dec 2021


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

1 answers ( 0 marked as helpful)
Posted on:

09 Dec 2021



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

Submit an answer