tensorflow 1.8.0 (version)
mac OS 10.15.6,
from tensorflow.python.keras.models import Sequential
from tensorflow.python.keras.layers import Dense, Activation, Dropout
这是屏幕上显示的错误。我该怎么做才能消除这个错误呢?
unresolved import 'tensorflow.python.keras.models' python (unresolved-import)
目前使用:Python 3.8.6 (version)
尝试更改导入方式
from tensorflow.keras.layers import Dense
或
from keras.models import Sequential
from keras.layers import Dense