Install TensorFlow on Apple M1 (M1, Pro, Max) with GPU (Metal)
- Install miniforge from brew:
brew install miniforge
- Create an anaconda environment:
conda create -n tf
- Activate the environment:
conda activate tf
- Install Python:
conda install python
conda install -c apple tensorflow-deps to install Apple's TensorFlow dependencies
pip install tensorflow-metal to install Apple's Metal GPU APIs for TensorFlow
pip install tensorflow-macos to install MacOS arm64 version of TensorFlow
pip install tensorflow-datasets pandas jupyterlab to install relevant dependencies to run sample code.
Running A Sample Code (MNIST)
You’ve successfully subscribed to Sudhanva
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Your link has expired
Success! Check your email for magic link to sign-in.