Setup notes: installing TensorFlow on a Mac

I’ve recently had to wipe my old-ish mac (it was getting annoyingly slow) and figured that since I’m still using it I can just as well install the TensorFlow on it and take notes on this install-from-scratch process. And when I say “from scratch” I meant it – see 1.

1. Install Python

It’s trivial (just pick one from here, I’ve got latest, at the moment of writing it’s 3.6.1) and the only reason I’m mentioning it is because once you get python you get pip, and pip is the easiest way to install TensorFlow (and all things python).

While at installing python 3.6.1, just in case (because I remember I had some issues related to that in the past, you might not need this) I’ve installed ActiveTLC 8.5.18 (as recommended by python installer and here)

2. Installing TensorFlow

After installing said packages and quick testing (run pip3 and python3 – in the terminal python on macOS Sierra points to the default python 2.7 installation) I’ve proceeded to installing TensorFlow. This page lists couple of ways of doing that. Like I said, I’m using pip approach.

Done :D

A quick test (again, using python3) proves it right:

And that’s pretty much it…

Note that this is a CPU installation of TensorFlow, not GPU (my poor old Mac doesn’t have an eligible gpu). At some point I’m going to post my notes on installing a GPU version on a Windows system.

Leave a Reply

Your email address will not be published. Required fields are marked *