Mac OS M1芯片安装tensorflow

发布时间 2023-04-14 15:08:51作者: rm-rf*

1.确认把系统更新到12以后

2.安装miniforge3

添加执行权限:chmod +x ~/Downloads/Miniforge3-MacOSX-arm64.sh
执行安装:sh ~/Downloads/Miniforge3-MacOSX-arm64.sh -b -p $HOME/miniforge3
激活环境:source ~/miniforge3/bin/activate

3.新建conda python环境

conda create -n tf python==3.9

4.安装tensorflow

conda activate tf
conda install -c apple tensorflow-deps
python -m pip install tensorflow-macos
python -m pip install tensorflow-metal

5.测试