简体   繁体   English

在Python中导入tensorflow时的非法指令

[英]Illegal instruction when import tensorflow in Python

I am trying to run python program in shell, CentOS 7.0 x64, on VPS 我试图在VPS上运行shell,CentOS 7.0 x64中的python程序

python3 version is 3.6.4 python3版本是3.6.4

pip3 version is 9.0.1 pip3版本是9.0.1

when I use pip3 freeze it has tensorflow==1.6.0 当我使用pip3 freeze它有tensorflow==1.6.0

The first line of xx.py is import tensorflow xx.py的第一行是import tensorflow

whether I use python3 xx.py or type import tensorflow in python3 shell, it turns out to be Illegal instruction 我是否在python3 shell中使用python3 xx.py或者import tensorflow ,结果证明是Illegal instruction

Besides, any other import like import numpy , import sklearn function well, nothing wrong with them 此外,任何其他导入如import numpyimport sklearn功能都很好,没有任何问题

How to solve this? 怎么解决这个?

TensorFlow 1.6 started using AVX feature of modern CPUs: https://github.com/tensorflow/tensorflow/releases/tag/v1.6.0 TensorFlow 1.6开始使用现代CPU的AVX功能: https//github.com/tensorflow/tensorflow/releases/tag/v1.6.0

Downgrade to 1.5: pip install tensorflow==1.5 降级至1.5: pip install tensorflow==1.5

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试导入TensorFlow时出现非法硬件指令 - Illegal hardware instruction when trying to import tensorflow 非法指令:在 python 3.6 中导入 tensorflow 时为 4 - Illegal instruction: 4 when importing tensorflow in python 3.6 导入tensorflow时Python给出非法指令(核心转储)错误 - Python giving illegal instruction(core dumped) error when importing tensorflow 导入cv2(Python)时出现非法指令(内核已转储) - Illegal instruction (core dumped) when import cv2 (Python) 运行导入 tensorflow 后出现非法指令(核心转储) - Illegal instruction (core dumped) after running import tensorflow “zsh:非法硬件指令 python”当 Tensorflow 在 macbook pro M1 上 - “zsh: illegal hardware instruction python” when Tensorflow on macbook pro M1 在 macbook pro M1 上安装 Tensorflow 时出现“zsh:非法硬件指令 python”[重复] - "zsh: illegal hardware instruction python" when installing Tensorflow on macbook pro M1 [duplicate] 非法指令:4导入python插件时 - Illegal instruction: 4 when importing python plugins 非法指令:4导入python pandas时 - Illegal instruction: 4 when importing python pandas 从源构建Tensorflow时出现非法指令错误 - illegal instruction error when building Tensorflow from source
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM