5

I am attempting to install scipy 1.9.1 with the MKL implementation of BLAS, using pip as my package manager. For numpy, I can do this with: pip install numpy --no-binary numpy. Doing this with Scipy (pip install scipy--no-binary scipy) fails with the error:

Run-time dependency openblas found: NO (tried pkgconfig and cmake)

../../scipy/meson.build:130:0: ERROR: Dependency "OpenBLAS" not found, tried pkgconfig and cmake

I cannot figure out how to configure scipy/meson to use a specific version of BLAS, it always looks for OpenBLAS. Older versions of scipy could accomplish this in a variety of ways using environment variables or site.cfg settings, but the new meson build system specifically no long supports this.

Any suggestions how I can build scipy from the source using a specific BLAS library (ideally with pip)?

Evan Gaertner
  • 51
  • 1
  • 3

1 Answers1

3

From looking at partial error provide, it seems either libopenblas development package or pkg-config command is missing. Below is the command to install them(for ubuntu or debian based system)

apt install libopenblas-dev pkg-config libopenblas64-dev

Depending on what are the other packages installed on system you may need to install below packages.

apt install patchelf python3-pythran cython3 gfortran

Manthan Tilva
  • 3,135
  • 2
  • 17
  • 41