Win10下TensorFlow安装错误解决:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2

出现“Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2”错误,是因为为了最大限度的适应各种CPU,pip默认安装的tensorflow版本没有对AVX指令集进行支持,

有两种方法进行解决:

1.禁用Warnning的显示

import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'

2.第2种上官网找正确的安装版本,这里提供一个网上找到的版本,亲测有效!

链接:https://pan.baidu.com/s/1EvO_s1m10g8lW5TwiCESXw 密码:o6nq

以下在Pycharm进行的测试,可以发现并不报错了:

原文地址:https://www.cnblogs.com/pompeii2008/p/9409332.html