If you are interested in machine learning, you are probably interested in tensorflow, the open-source library for distributed machine learning computation (pre-equipped with many useful tools for building Deep Neural Networks of many kinds).
If you are interested in machine learning and you like datasets that won’t fit in your memory at once, you want to use generators and iterators. That is, you want what python3 makes the default, so you want to build it in python3. Also, print is happier as a function.
If you wanted to get tensorflow working with python3 as of my installing it on February 9, 2016, you needed to build it from source. As of February 13, 2016, you can use
pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py3-none-any.whl
or see the git repo. But if you want to install from source, or even to just understand the steps needed to install it from source, this post should still be useful.
But installing from source requires jumping through some hoops. These hoops aren’t too difficult, but they are spread across a lot of places. If you stopped in the middle of the process and forgot where you were, this might prove to be a problem. Also, many of the individual steps are more interesting to understand than they are difficult to follow.
I tried to bring these steps together here. More importantly, I attempted to explain them so that, rather than trying to blindly follow my directions (which you are welcome to attempt as well, though I don’t ever recommend it), you can comprehend what each step is doing.
Read More