Skip to content

Instantly share code, notes, and snippets.

@MuhammedBuyukkinaci
Last active December 3, 2022 18:02
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 MuhammedBuyukkinaci/a623cc2b0d767ea2914ec2ff64ac2e5d to your computer and use it in GitHub Desktop.
Save MuhammedBuyukkinaci/a623cc2b0d767ea2914ec2ff64ac2e5d to your computer and use it in GitHub Desktop.
# How to install tensorflow on mac m1 pro with venv (or virtualenv) without conda
# step 1: install venv for mac
# step 2: create a virtual environment named venv
python3 -m venv venv
# step 3: activate environment
source venv/bin/activate
# step 4: install tensorflow for mac os
python -m pip install tensorflow-macos
# step 5: install tensorflow metal
python -m pip install tensorflow-metal
# step 6: verify tensorflow installation
python -c "import tensorflow as tf; print(tf.__version__)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment