NEURAL-NETWORK: AttributeError: module ‘keras.api._v2.keras’ has no attribute ‘__version__’

ErrorAttributeError: module ‘keras.api._v2.keras’ has no attribute ‘version

I have just started the Neural Network and getting this error when i am running the flowing code:\

I have try reinstalling the tensorflow and also update the pip but it is not working.

The same code is working on google collab.

  • Does this answer your question? How to check which version of Keras is installed?

    – 

  • It seems tf.keras__version__ is undefined since tf 2.14. Check this answer for the suggested duplicate and tf.keras.__version__ is undefined since TF 2.14.0.

    – 




  • Please provide enough code so others can better understand or reproduce the problem.

    – 
    Bot

  • 1

    Please do not upload images of code/data/errors.

    – 

Leave a Comment