python-3.x - 我无法在 Jupyter Notebook 中导入 Keras
问题描述
当我import keras
在 Jupyter Notebook 单元中运行时,它会崩溃并显示以下消息:
内核似乎已经死了。它将自动重新启动。
凯拉斯 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-launcher 0.10.5
蟒蛇 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
张量流 1.9.0张量流-GPU 1.9.0张
量流-张量板 1.5.1
解决方案
问题是我过时的处理器不支持 AVX。必须安装不低于 1.5 的 tensorflow 版本
推荐阅读
- typescript - 为什么我不能将数字转换为类型数字|字符串上的字符串,TS2322
- pip - 将终端 python 包链接到 IDLE python 包
- javascript - 应用 v-model 导致“编译失败”
- xml - XML 数据对于模式“[A-FH-Z][AZ]|[AZ][A-QS-Z]”不是 Facet-valid
- pyspark - 如何将共享 id 的多行合并为一行(PYSPARK)
- crashlytics - crashlytics 是否报告 iOS 冻结(如 Google 中的 ANR)
- php - Laravel:如何在模型中创建一个返回经过验证的用户的方法?
- database - GoldenGate 19c 集成提取启动错误 OGG-02030 无法将日志挖掘服务器参数设置回默认值
- java - 滑翔返回错误:加载失败,大小
- r - 在 R 中查找匹配项和分配金额的棘手问题