AttributeError: module ‘tensorflow_core.compat.v2‘ has no attribute ‘__internal__‘

Error code:

insert image description here
The keras version I downloaded is 2.3.1, and the tensorflow version is 2.1.0. This error is reported because the keras and tensorflow versions conflict, and the keras version needs to be upgraded to version 2.5.0rc0.

Guess you like

Origin blog.csdn.net/qq_45257495/article/details/131182425