[英]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 numpy
, import 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.