在引入头文件之后,加入 import os os.environ['KERAS_BACKEND']='tensorflow' 就可以完美解决这个问题 转载于:https://www.cnblogs.com/Peit/p/10678780.html