我无法在Jupyter Notebook中导入Keras

时间:2018-07-23 10:21:58

标签: python-3.x keras jupyter-notebook

当我在Jupyter Notebook单元中运行import keras时,它崩溃并显示以下消息:

  

内核似乎已经死亡。它将自动重启。

Keras 2.2.0

jupyter 1.0.0
jupyter-client 5.2.3
jupyter-console 5.2.0
jupyter-core 4.4.0
jupyterlab 0.32.1
jupyterlab-发射器0.10.5

Python 3.6.6

控制台导入日志

kraamis@debian [~]$ python3
Python 3.6.6 (default, Jun 27 2018, 14:44:17) 
[GCC 8.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import keras
/usr/lib/python3/dist-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
Using TensorFlow backend.
Illegal  instruction

tensorflow 1.9.0
tensorflow-gpu 1.9.0
tensorflow-tensorboard 1.5.1

1 个答案:

答案 0 :(得分:1)

问题是我的过时处理器不支持AVX。必须安装不超过1.5的tensorflow版本