[tensorflow和theano的python3 keras导入错误

问题描述 投票:0回答:1

使用python3(版本3.6.8)和keras简单的脚本:

import keras

出现错误:

使用TensorFlow后端。

UngültigerMaschinenbefehl(Speicherabzug geschrieben)

(在英语中,它将类似于:“无效的机器命令(已写入内存映像)”)]

所以我尝试改用theano:

import os
os.environ['KERAS_BACKEND'] = 'theano'
from keras import backend as K

使用python3,它显示此输出:

使用Theano后端。

UngültigerMaschinenbefehl(Speicherabzug geschrieben)

我如何获得有关该问题的更多信息?

python-3.x tensorflow keras theano
1个回答
0
投票

尝试

from tensorflow import keras

如果问题仍然存在,请尝试阅读有关如何安装和使用它的文档。

Keras - Tensorflow

Keras Overview - Tensorflow

Keras.io

© www.soinside.com 2019 - 2024. All rights reserved.