[python] module ‘tensorflow.compat.v2‘ has no attribute ‘_internal‘

tensorflow2的安装问题

  1. tensorflow2.5要求安装python3.9/8,对应版本keras是测试版本
  2. tensorflow2.2.0安装时,会出现 module ‘tensorflow.compat.v2’ has no attribute ‘_internal’
    的报错
  3. tensorflow2.3.0 keras2.4 不会出现版本问题
    [python] module ‘tensorflow.compat.v2‘ has no attribute ‘_internal‘_第1张图片

你可能感兴趣的:(tensorflow2.0)