更新:苹果之前是M1加速的tensorflow,现在已经支持原生的tensorflow了!
假设已经安装了miniforge
conda install -c apple tensorflow-deps
python -m pip install tensorflow-macos
如果第二步报错ERROR: Failed building wheel for numpy 先执行下面命令安装numpy
brew install openblas
OPENBLAS="$(brew --prefix openblas)" pip install numpy==1.19.5
安装的版本是python3.9 和tf 2.5