Skip to content

Instantly share code, notes, and snippets.

@lvnilesh
Forked from svpino/instructions.md
Created December 5, 2022 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lvnilesh/514edbd0e6c94fce823636b210d43278 to your computer and use it in GitHub Desktop.
Save lvnilesh/514edbd0e6c94fce823636b210d43278 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