tensorflow 安装: that this TensorFlow binary was not compiled to use: AVX AVX2
Posted montai
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了tensorflow 安装: that this TensorFlow binary was not compiled to use: AVX AVX2相关的知识,希望对你有一定的参考价值。
有两种解决办法:
1、忽略这个警告(用第二个):
-
import os
-
# os.environ["TF_CPP_MIN_LOG_LEVEL"]=‘1‘ # 这是默认的显示等级,显示所有信息
-
os.environ["TF_CPP_MIN_LOG_LEVEL"]=‘2‘ # 只显示 warning 和 Error
-
# os.environ["TF_CPP_MIN_LOG_LEVEL"]=‘3‘ # 只显示 Error
2、彻底解决,换成支持cpu用AVX2编译的TensorFlow版本。
首先,卸载原来版本的TensorFlow
pip uninstall tensorflow
完成后可以用pip list查看一下所有库,检查是否成功卸载。
然后去github下载正确的tf版本,Windows点这里下载。其他操作系统可以点这里找到对应的版本。
最后DOS命令找到文件目录,执行以下命令:
pip install tensorflow-1.5.0-cp36-cp36m-win_amd64.whl
安装了以下几个文件:
以上是关于tensorflow 安装: that this TensorFlow binary was not compiled to use: AVX AVX2的主要内容,如果未能解决你的问题,请参考以下文章
Win10下TensorFlow安装错误解决:Your CPU supports instructions that this TensorFlow binary was not compiled t
解决tensorflow问题:Your CPU supports instructions that this TensorFlow binary was not compiled to use:(示
tensorflow输出提示Your CPU supports instructions that this TensorFlow binary was not compiled to use: AV
I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this Tensor
Tensorflow 运行警告提示 Your CPU supports instructions that this TensorFlow binary was not compiled to
Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2