Skip to content

Instantly share code, notes, and snippets.

@svpino
Last active September 12, 2023 03:39
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save svpino/31a16d236ca730336c54e3581f5c5b1b to your computer and use it in GitHub Desktop.
Save svpino/31a16d236ca730336c54e3581f5c5b1b to your computer and use it in GitHub Desktop.
Installing TensorFlow on Apple Silicon

Running TensorFlow on Apple Silicon

  1. Install Homebrew The Missing Package Manager for macOS (or Linux) — Homebrew

  2. Download Miniforge3

  3. Install Miniforge3 and restart your terminal as soon as the installation finishes:

chmod +x ~/Downloads/Miniforge3-MacOSX-arm64.sh
sh ~/Downloads/Miniforge3-MacOSX-arm64.sh
source ~/miniforge3/bin/activate
  1. Create a Conda environment
conda create --prefix ./env python=3.8 
conda activate ./env
  1. Install TensorFlow, Jupyter, and any libraries you need
conda install -c apple tensorflow-deps
pip install tensorflow-metal
pip install tensorflow-macos
conda install jupyter numpy matplotlib
  1. Run Jupyter
jupyter notebook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment