Mac OS X Install Notes

Apple’s implementation of BLAS does not support using BLAS calls on both sides of a fork.

The upshot of this is that you can’t do parallel processing with numpy (which uses BLAS).

One way to get around this is to compile NumPy against a different implementation of BLAS such as OpenBLAS. Here’s how you might go about that:

Install OpenBlas with Homebrew Science

You can install OpenBlas from with Homebrew Science.

$ brew install homebrew/science/openblas

Clone and build NumPy

$ git clone git:// numpy
$ cd numpy
$ pip uninstall numpy (if it is already installed)
$ cp site.cfg.example site.cfg

Edit site.cfg and uncomment/update the code to match below:

library_dirs = /usr/local/opt/openblas/lib
include_dirs = /usr/local/opt/openblas/include

atlas_libs = openblas
libraries = openblas

libraries = openblas
library_dirs = /usr/local/opt/openblas/lib
include_dirs = /usr/local/opt/openblas/include

You may need to change the library_dirs and include_dirs paths to match where you installed OpenBlas (see for details).

Then install with:

python build && python install

Then reinstall Dedupe:

pip uninstall Dedupe
python install