更新:蘋果之前是M1加速的tensorflow,現(xiàn)在已經(jīng)支持原生的tensorflow了!
假設(shè)已經(jīng)安裝了miniforge
conda install -c apple tensorflow-deps
python -m pip install tensorflow-macos
如果第二步報錯ERROR: Failed building wheel for numpy 先執(zhí)行下面命令安裝numpy
brew install openblas
OPENBLAS="$(brew --prefix openblas)" pip install numpy==1.19.5
安裝的版本是python3.9 和tf 2.5