Tensorflow on Mac M1

I have successfully installed Tensorflow using the documentation provides by Apple developer (link). Thank you for the documentation. And please tell me how to install TensorFlow version 2.0 in my Mac M1?

Answered by yuliya808 in 690362022

Hello,

These commands worked for me:

# check the current tensorflow version
python -m pip list | grep tensorflow
# force upgrade tensorflow-deps first
conda install -c apple tensorflow-deps --force-reinstall
# or point to specific conda environment if you have one
conda install -c apple tensorflow-deps --force-reinstall -n my_env
# uninstall existing tensorflow-macos and tensorflow-metal
python -m pip uninstall tensorflow-macos
python -m pip uninstall tensorflow-metal
# install the latest
python -m pip install tensorflow-macos
python -m pip install tensorflow-metal
# verify that you have the latest 
python -m pip list | grep tensorflow
Accepted Answer

Hello,

These commands worked for me:

# check the current tensorflow version
python -m pip list | grep tensorflow
# force upgrade tensorflow-deps first
conda install -c apple tensorflow-deps --force-reinstall
# or point to specific conda environment if you have one
conda install -c apple tensorflow-deps --force-reinstall -n my_env
# uninstall existing tensorflow-macos and tensorflow-metal
python -m pip uninstall tensorflow-macos
python -m pip uninstall tensorflow-metal
# install the latest
python -m pip install tensorflow-macos
python -m pip install tensorflow-metal
# verify that you have the latest 
python -m pip list | grep tensorflow
Tensorflow on Mac M1
 
 
Q