Skip to content

Instantly share code, notes, and snippets.

@ergunkocak
Forked from svpino/instructions.md
Created January 30, 2023 10:05
Show Gist options
  • Save ergunkocak/9b5feccd81ff0addbbbda5558f988779 to your computer and use it in GitHub Desktop.
Save ergunkocak/9b5feccd81ff0addbbbda5558f988779 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