Tensorflow on Mac with M1 chip

Hi,

I want to use tensorflow easily on Mac M1 chip just as on any other system.

When I install on plain terminal. Install fails for h5py dependency. It seems there is no compatible h5py package for Mac M1. I am also not able to install numpy. When I do google, it says there is no numpy support for Mac M1.

When I did google, there are articles to install it on Rosetta terminal. It seems it install on Rosetta terminal as x86 wheel. After that I am able to import tensorflow but then fails on using ImageDataGenerator module from tensor flow on Pillow or PIL package error.

Well before we go into resolution of individual errors, I have basic questions:

  1. Is there proper support of tensorflow, numpy, h5py or any python package for Mac M1. If so, what is the pip package name for it.
  2. If no, and if I should use Rosetta, then is there proper documentation on installing all machine learning packages on Rosetta. Or do I have to do trial and error.

A proper documentation would be really helpful. Also, I would like to know on enabling tensor flow with GPU support on Mac M1 chip.

Thanks for your response in advance.

Tensorflow on Mac with M1 chip
 
 
Q