非法指令(核心转储)张量流 [英] Illegal instruction(core dumped) tensorflow
本文介绍了非法指令(核心转储)张量流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在我的ubuntu python中导入tensorflow 使用以下命令-
I am importing tensorflow in my ubuntu python using following commands-
$ python3
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Illegal instruction (core dumped)
然后程序退出. 请指定解决方案.
And the program exits. Please specify the solution.
推荐答案
我遇到了同样的问题,不得不将tensorflow降级为1.5.0:
I had the same problem and had to downgrade tensorflow to 1.5.0:
pip uninstall tensorflow
pip install tensorflow==1.5.0
正如@Tobsta在评论中指出的那样,另一种选择是从源代码编译二进制文件.版本大于1.5的预编译二进制文件使用旧CPU不支持的 AVX 指令
As @Tobsta points out in the comments, the other option is to compile the binaries from source. The precompiled binaries of versions >1.5 use AVX instructions that are not supported by older CPUs
这篇关于非法指令(核心转储)张量流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文