astroNN module 'keras.layers' has no attribute 'Wrapper' 参考链接tensorflow - AttributeError: module 'keras.layers' has no attribute 'Wrapper' - Stack Overflowzzz 根据报错的位置,将'keras.layers'改为'tf.keras.layers',bug就可以解决。