NuPIC 0.7.0 macOS 10.10.5 installation problems

@jbmaxwell @rhyolight

I was able to fix my problem with the recommendation from https://github.com/capnproto/pycapnp/issues/155

Use the following command-line:

CFLAGS="-mmacosx-version-min=10.7 -std=c++11 -stdlib=libc++" pip install pycapnp

This will install the latest version of pycapnp which is 0.6.1 and unfortunately the wrong version for nupic’s dependency.

If I try to install the version of pycapnp that nupic wants:
CFLAGS="-mmacosx-version-min=10.7 -std=c++11 -stdlib=libc++" pip install pycapnp==0.5.12

The install process fails.

I fixed this by downloading the nupic release source and then editing the setup.py to use the 0.6.1 pycapnp instead of the 0.5.12 version. It appears to work correctly.

So the procedure is:

  1. Install pycapnp==0.6.1 separately using the above CFLAGS prefixes.

  2. download nupic release source

  3. edit setup.py to change pycapnp version to 0.6.1

  4. run pip install . in nupic source directory and it will use the installed pycapnp with no problem.

1 Like