Install TensorFlow on Mac M1/M2 with GPU support

Dennis Ganzaroli
5 min readSep 2, 2022

Install TensorFlow in a few steps on Mac M1/M2 with GPU support and benefit from the native performance of the new Mac ARM64 architecture.

Fig 01: Apple M1 (image by Apple)

Why use a Mac M1/M2 for Data Science and Deep Learning?

What makes the Macs M1 and the new M2 stand out is not only their outstanding performance, but also the extremely low power consumption.

Fig 02: Apple M2 (image by Apple)

1. Low Power Consumtion

The Mac Mini M1 has a maximum power consumption of 39 W, while a normal gaming PC tower consumes over 50 W when idle and between 150 W and 300 W under peak load.

Fig 03: Mac Mini M1 power consumption (image from Apple)

In a world where energy consumption is becoming more critical every day, efficient use of resources must also be a priority.

2. Powerful CPU

However, a strong CPU is also essential for Data Science tasks, and for Deep Learning you also need a powerful GPU.

--

--

Dennis Ganzaroli

Data Scientist with over 20 years of experience. Degree in Psychology and Computer Science. KNIME COTM 2021 and Winner of KNIME Best blog post 2020.