Cannot Import Name 'keras_export' From 'tensorflow.python.util.tf_export' Cannot Import Name 'keras_export' From 'tensorflow.python.util.tf_export' python-3.x python-3.x

Cannot Import Name 'keras_export' From 'tensorflow.python.util.tf_export'


Tensorflow is not uninstalled when tensorflow-gpu is install. That is the problem in importing the keras_import. So if we uninstall the tensorflow then the problem is solved.

tensorflow_version 2.x
!pip uninstall -y tensorflow
!pip install tensorflow-gpu==1.14.0

Hope it works!!


the last tensorflow update have change alot of thinks, also the BERT model have a new method to use it please chek here for more information link.