Install C Backend openblas on MacOSX

1. Check for BLAS Library

First, make sure you have installed a BLAS library, we recommend openblas. To check if openblas is installed, enter brew ls --versions openblas into the terminal, to display the current library version (if installed).

2. Install openblas Library

Enter

brew install openblas

leading to a message similar to

openblas is keg-only, which means it was not symlinked into /usr/local,
because macOS provides BLAS in Accelerate.framework.

For compilers to find openblas you may need to set:
  export LDFLAGS="-L/usr/local/opt/openblas/lib"
  export CPPFLAGS="-I/usr/local/opt/openblas/include"

For pkg-config to find openblas you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/openblas/lib/pkgconfig"

Set the following flags and restart your system:

export LDFLAGS="-L/usr/local/opt/openblas/lib"
export CPPFLAGS="-I/usr/local/opt/openblas/include"

3. Compile C-Implementation

Switch to the lmlib home directory, where the file setup.py is located and enter

python3 setup.py build_ext --inplace

to compile the library on your system.