The Golden Spot

I hope this helps someone who is learning about Linux and web application programming with Python, Django, and Javascript.

Sunday, February 16, 2014

notes on installing Python Annoy (Approximate Nearest Neighbors)

Notes on installing Annoy, which is a clustering module written in C++ with Python bindings.

python install

The first error is a sign that boost cannot be found. I installed from source.

Still can't find boost? The default location for boost in /usr/local so we'll need to tell the file to look there. Add this line to


This tells distutils to pass the  -I/usr/local/include flag when compiling the annoylib library, so the compiler can find the boost directory.