AttributeError: module ‘tensorflow.compat.v2.__internal__‘ has no attribute ‘register_c

解决方案:

  1. 把tensorflow更新到目前最新版本
  2. 由于tensorflow已经兼容keras,在keras前加tf就可以了
  3. 不要有中文用户名

你可能感兴趣的:(学校学习,tensorflow,python,jupyter)