解决tensorflow问题:Your CPU supports instructions that this TensorFlow binary was not compiled to use:(示

Posted enumx

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决tensorflow问题:Your CPU supports instructions that this TensorFlow binary was not compiled to use:(示相关的知识,希望对你有一定的参考价值。

我不知道大家是不是和我一样是用pip install tensorflow安装的tensorflow库,但是使用的时候,却会显示:
Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
虽然运行起来没什么问题,但是看着总是不舒服。网上查阅了其他大神的博客之后,终于知道怎么处理了。
首先,卸载原有的Tensorflow 包:

pip unistall tensorflow

然后输入:

pip list

查看有没删除干净,最好把tensorflow其他相关的包都删除了,比如tensorborad之类的,没删除就继续使用pip unistall (库名删除。
删除完后,点击这里下载whl文件,我的版本是python3.6的,选择了trensorflow1.9.0版本,如下:
tensorflow-windows-wheel/1.9.0/py36/CPU/avx2/
下载好后,通过命令行进入该文件的位置:

cd (文件路径)

然后:

pip install tensorflow-1.9.0-cp36-cp36m-win_amd64.whl
1
搞定~

以上是关于解决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(示例

tensorflow输出提示Your CPU supports instructions that this TensorFlow binary was not compiled to use: AV

报错解决——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: AVX2

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