I\'m using NumPy built against Intel\'s Math Kernel Library. I use virtualenv, and typically use pip to install packages.
However, in order for NumPy to find the
To your question of how to configure NumPy (e.g. to use OpenBLAS):
[openblas]
libraries = openblas
library_dirs = /opt/OpenBLAS/lib
include_dirs = /opt/OpenBLAS/include
~/.numpy-site.cfgInstall numpy from source without manually downloading it (--force-reinstall will let it replace an existing package):
pip install numpy --no-binary numpy --force-reinstall
Bonus: The same file ~/.numpy-site.cfg works for installing scipy on the OpenBLAS:
pip install scipy --no-binary scipy
or install them together:
pip install numpy scipy --no-binary numpy,scipy --force-reinstall
Sept. 2019: If you're still using Python 2.7, install numpy then install scipy. Attempting to install them together will:
install numpy==1.14.6 scipy==1.0.1 --no-binary numpy,scipy), thenRuntimeError: Python version >= 3.5 required because the latest NumPy does not support Python 2.7.