I’m having the exact came problems. Same setup as jacobeverist. I tried his approach using:
CFLAGS="-mmacosx-version-min=10.7 -std=c++11 -stdlib=libc++" pip install pycapnp

It gives a RuntimeError: Configure failed.

It still seems to be using “/Python.framework/Versions/2.7/lib/python2.7/” when it installs. If I’m understanding correctly I want it to be using the Mac installed python, not the Python 2.7 I installed from python.org, which it seems to be using. It’s weird because when I run “which python” command it is running “/usr/bin/python”

Thanks to @jacobeverist for this solution. I spent a full SEVEN HOURS trying to get Nupic installed on a Mac OS X 10.13 (High Sierra).

I had slight variations in the procedure, including pycapnp version 0.6.3, and pip install pycapnp without the compiler options. Also, my previous configuration was Anaconda Python 3.6, so it took many steps for me to install and configure Python 2.7 and virtualenv to create an environment with 2.7 and packages just for Nupic. Then I installed all the requirements.txt EXCEPT nupic.bindings. Finally I followed steps 1 thru 4, in this post.

To @rhyolight – it would be really great if the Nupic Readme.md page could be updated with better instructions for Mac installation, reflecting these steps.

To @rhyolight – it would be really great if the Nupic Readme.md page could be updated with better instructions for Mac installation, reflecting these steps.

Where in the README do you think is the best place to put a note or something that links to this solution? Or maybe even better, what are the keywords that would would have brought you to this thread sooner?