在Mac中使用Python3的时候跑程序安装TensorFlow(CPU版本)
报错:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
原因:CPU支持AVX扩展,但是安装的TensorFlow版本无法编译使用
解决方法:安装的是CPU版本(pip install tensorflow)
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
在Mac使用Python3安装TensorFlow(CPU版本)时,出现YourCPUsupportsinstructionsthatthisTensorFlowbinarywasnotcompiledtouse:AVX2FMA错误。原因是CPU支持AVX扩展,但安装的TensorFlow版本未编译使用。解决方法为重新安装CPU版本,并设置环境变量抑制警告。
559

被折叠的 条评论
为什么被折叠?



