解决TensorFlow binary was not compiled to use AVX2 附whl文件

解决“Your CPU supports instructions that this TensorFlow binary was not compiled to use AVX2”

pip install tensorflow直接安装的包过于通用,在现在大部分电脑上都会报“Your CPU supports instructions that this TensorFlow binary was not compiled to use AVX2”
解决方案:

  1. 命令行执行: pip uninstall tensorflow

  2. https://github.com/fo40225/tensorflow-windows-wheel(Windows)或https://github.com/lakshayg/tensorflow-build (MacOS and Linux)下载编译好的指定使用AVX2指令集的whl文件
    因Github下载速度较慢,博主准备了最通用的tensorflow-2.0.0-cp37-cp37m-win_amd64.whl(Windows CPU版 Python3.7)
    CSDN下载链接

  3. 找到tensorflow.whl存放路径,命令行下切到该路径,执行:pip install tensorflow-2.0.0-cp37-cp37m-win_amd64.whl(自己下载的文件全名)
    Tip:输入tensor后按Tab键可自动补全

另外还没有把pip源改为国内镜像的同学可以先看下面这篇文章https://blog.csdn.net/qq_43526642/article/details/97617950

  • 1
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值