https://developer.apple.com/metal/tensorflow-plugin/
基于conda环境的安装
新建一个python3.8的环境
conda create -n tf25 python=3.8
conda activate tf25
关于m1芯片的部分
conda install -c apple tensorflow-deps
安装tensorflow
python -m pip install tensorflow-macos
安装tensorflow-meta插件
python -m pip install tensorflow-metal
测试是否安装成功
import tensorflow as tf
print(tf.__version__)
2.11.0