Skip to content

Instantly share code, notes, and snippets.

@zengtianli
Forked from svpino/instructions.md
Created September 12, 2023 03:39
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 zengtianli/3e564e12aa90e9c4200e370f9c696bca to your computer and use it in GitHub Desktop.
Save zengtianli/3e564e12aa90e9c4200e370f9c696bca 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