这是因为环境中的 keras与tensorflow版本不匹配,tensorflow是什么版本,keras就要是什么版本
这里我就是2.6的tensorflow与2.8的keras一起用 nuinstall keras,换成2.6的keras即可