from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
报错详情如下:
--------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-59-c947233989bd> in <module> ----> 1 from keras.models import Sequential 2 from keras.layers import Dense 3 from keras.layers import LSTM ~\Anaconda3\lib\site-packages\keras\__init__.py in <module> 23 24 # See b/110718070#comment18 for more details about this import. ---> 25 from keras import models 26 27 from keras.engine.input_layer import Input ~\Anaconda3\lib\site-packages\keras\models.py in <module> 17 18 import tensorflow.compat.v2 as tf ---> 19 from keras import backend 20 from keras import metrics as metrics_module 21 from keras import optimizer_v1 ~\Anaconda3\lib\site-packages\keras\backend.py in <module> 35 from tensorflow.python.distribute import distribute_coordinator as dc 36 from tensorflow.python.distribute import distribute_coordinator_context as dc_context ---> 37 from tensorflow.python.eager.context import get_config 38 from tensorflow.python.framework import config 39 from keras import backend_config ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context'
请求大佬们的帮助,感谢!