python - 非法指令(核心转储)tensorflow

标签 python ubuntu tensorflow machine-learning

我正在我的 ubuntu python 中导入 tensorflow 使用以下命令-

$ 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)

然后程序退出。 请指定解决方案。

最佳答案

我遇到了同样的问题,不得不将 tensorflow 降级到 1.5.0:

pip uninstall tensorflow
pip install tensorflow==1.5.0

编辑:正如@Tobsta 在评论中指出的那样,另一种选择是从源代码编译二进制文件。版本 >1.5 的预编译二进制文件使用 AVX旧 CPU 不支持的指令

关于python - 非法指令(核心转储)tensorflow,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49092527/

相关文章:

python - tf.control_dependencies(tf.get_collection(tf.GraphKeys.UPDATE_OPS)) 在 tensorflow 中

python - 字典文本以相同字母开头和结尾

python - Django-Compressor 在实际存在时找不到文件

python - 在 Python 中查找矩阵变为奇异的值

ruby-on-rails - 在 Rails 服务器启动上开始思考 sphinx

java - 无法使用 Openshift 客户端工具

python - AddN 必须与 tf.estimator.LinearClassifier 具有相同的大小和形状

c++ - 如何制作多人 Flash 游戏?那里有哪些套接字库/我如何制作自己的套接字库?

.net - Ubuntu 16.04 i386 的网络核心

python - Keras 值错误 : Error when checking target: expected dense_1 to have 3 dimensions