Win10下TensorFlow安装错误解决:Your CPU supports instructions that this TensorFlow binary was not compiled t
Posted pompeii2008
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Win10下TensorFlow安装错误解决:Your CPU supports instructions that this TensorFlow binary was not compiled t相关的知识,希望对你有一定的参考价值。
出现“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进行的测试,可以发现并不报错了:
以上是关于Win10下TensorFlow安装错误解决:Your CPU supports instructions that this TensorFlow binary was not compiled t的主要内容,如果未能解决你的问题,请参考以下文章
win10 anaconda+tensorflow+keras