M1 Tensorflow installation fails

Dear community,

I recently got my new Macbook with Apple M1 chip. I'm trying to install Tensorflow according to the guide found at this URL: https://developer.apple.com/metal/tensorflow-plugin/. However, after installing everything I get the following error:

Therefore, I cannot use Tensorflow when I open Jupyter Notebook.

Outside the environment my Python version is 3.8 as required and inside 3.7. However, I can't seem to update (not with Homebrew, neither with conda and neither with pip).

How can I solve this?

Thank you!

Hi @suysthomas

Please note that the installation instructions have two separate parts for Step 1, one for x86 machines and one for M1 machines. To me it looks like you are mixing the two so that you have first installed and activated the conda environment (intended for M1) and then activate a virtual environment (intended for x86). On an M1 machine you should be fine without the line source ~/tensorflow-metal/bin/activate which should leave you into the conda environment which is indicated by the (base) at the beginning of your terminal line. Pip should be able to find the tensorflow-macos wheel at that point.

M1 Tensorflow installation fails
 
 
Q