【MacBook M1 Pro】Tensorflow 环境安装

https://developer.apple.com/metal/tensorflow-plugin/

安装插件:https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh

GitHub地址:https://github.com/conda-forge/miniforge/#download

chmod +x ~/Downloads/Miniforge3-MacOSX-arm64.sh
sh ~/Downloads/Miniforge3-MacOSX-arm64.sh
source ~/miniforge3/bin/activate

安装TensorFlow依赖库

conda install -c apple tensorflow-deps

安装TensorFlow基础包

python -m pip install tensorflow-macos

安装 tensorflow-metal 插件

python -m pip install tensorflow-metal

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注