【发布时间】:2021-06-11 23:30:03
【问题描述】:
我想使用 Keras 进行 LSTM 预测。 每次我运行先决条件步骤:导入库
from keras.callbacks import EarlyStopping, ReduceLROnPlateau, ModelCheckpoint, TensorBoard
出现以下消息:
The kernel appears to have died. It will restart automatically.
当我:
ìmport keras 或 import tensorflow。
我使用的是 MacOS 11.2 版,16 GB 内存。
【问题讨论】:
-
在 python 终端 shell 中导入 keras 或 tensorflow 并报告您在问题中遇到的错误。
-
zsh: 非法硬件指令python
-
``import pandas` 有效。
Import keras和import tensorflow会导致该消息。 -
如果您使用的是 M1 Mac,请在此处查看我的答案:stackoverflow.com/questions/65242614/… 问题是您以某种方式在 ARM python 环境中安装了 x86 库(反之亦然)。
标签: python python-3.x macos tensorflow keras