Install Tensorflow fail on M1

https://developer.apple.com/metal/tensorflow-plugin/ Follow the URL to install tensorflow, but get several errors

  1. conda install -c apple tensorflow-deps

getting the error is famous "PEP 517". conda install -c apple tensorflow-deps=2.5.0 the error is resolved. but numpy version is 1.21.x

2.python -m pip install tensorflow-macos getting the error is famous "PEP 517" again. https://github.com/tensorflow/tensorflow/blob/a4dfb8d1a71385bd6d122e4f27f86dcebb96712d/tensorflow/tools/pip_package/setup.py#L81 As above URL show, TF2.5 need less numpy 1.19.2

I have seen too many errors in this forum, I'd like to know if Apple team tested the TensorFlow on M1 or not. Additional, the MacOS version require 12+, but the latest macOS is 11+, as I know

Hi there,

  1. Looks like python packages compatibility broke when you tried to downgrade to tensorflow-deps==2.5. I would suggest creating a new conda environment and following the install steps to get the latest TensorFlow (instructions) or see commands (option #2) to install TensorFlow 2.5. If you don't specify any versions, you'll get all the latest versions by default (currently these are tensorflow-deps==2.6, tensorflow-macos==2.6, tensorflow-metal==0.2.0), which is recommended to use with macOS 12.0+ (How to update to the latest available macOS here)
  2. To be able to use older versions, please be specific during the install:
conda install -c apple tensorflow-deps==2.5.0
python -m pip install tensorflow-macos==2.5.0
python -m pip install tensorflow-metal==0.1.2

Hope that helps!

Install Tensorflow fail on M1
 
 
Q