Installing Tensor Flow on Mac OS (Read This)
If anyone is installing Tensor Flow on Mac OS running apple silicon and it's the year 2025+, you should read this. I installed TensorFlow according to the course instructions and everything worked fine until I got to the lesson where we train our network on the MNIST dataset. When I went to fit() the model, it hung indefinitely. It took hours of troubleshooting to determine the issue had nothing to do with the dataset or the code, but rather the install of TensorFlow.
Solution: Rather than install tensorflow, like the course describes, you need to install tensorflow-macos. There is a bunch of info about also needing to install tensorflow-metal to have it run on the GPU, but I didn't need that to fix the problem. You may gain some additional speed boosts, but you do not need it to fix the main problem of the indefinite hang.
I pray this helps someone avoid hours of effort!
-Justin
Solution: Rather than install tensorflow, like the course describes, you need to install tensorflow-macos. There is a bunch of info about also needing to install tensorflow-metal to have it run on the GPU, but I didn't need that to fix the problem. You may gain some additional speed boosts, but you do not need it to fix the main problem of the indefinite hang.
I pray this helps someone avoid hours of effort!
-Justin
0 answers ( 0 marked as helpful)
