报错ModuleNotFoundError: No module named ‘tensorflow.keras‘

仅仅为思路示意

解决方案1

from keras import backend as K
改成
from tensorflow.keras import backend as K

解决方案2

from keras.preprocessing import sequence

改为
from keras_preprocessing import sequence

解决方案3

from keras.utils import np_utils
改为
from keras import utils as np_utils

你可能感兴趣的:(python,package,深度学习,神经网络,人工智能)