我是靠谱客的博主 美丽皮带,最近开发中收集的这篇文章主要介绍解决Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
接上次安装tensorflow后,可能会报错
Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
这个错误不影响运行,但是一直有报错看的还是不舒服,所以今天干脆解决了一下。
这个错误的原因大概就是你安装的tensorflow版本和你的cpu功能对不上。
首先,按照你安装的python版本,到这个网址去下载对应的版本whl文件。
例:
我安装的是python36,同时是64位系统,所以我下载的就是:
tensorflow-1.8.0-cp36-cp36m-win_amd64.whl
然后打开anaconda prompt(我这里新开了一个环境)
conda create -n tensorflow1.8.0 python=3.6
activate tensorflow1.8.0
将下载好的whl文件放在你anaconda目录下:
如:Anaconda3envstensorflow1.8.0
然后执行:
cd D:Anaconda3envstensorflow1.8.0
#转到这个目录
pip install tensorflow-1.8.0-cp36-cp36m-win_amd64.whl
#安装whl文件
完成!
最后
以上就是美丽皮带为你收集整理的解决Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2的全部内容,希望文章能够帮你解决解决Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复