[Numpy-discussion] Does numpy depend upon a Fortran library?

Marc F Paterno paterno at fnal.gov
Wed Jan 30 19:27:37 EST 2019


I have encountered a problem with a binary incompatibility between the Fortran runtime library installed with numpy when using 'pip install --user numpy', and that used by the rest of my program, which is built using gfortran from GCC 8.2.  The numpy installation uses libgfortran.5.dylib, and GCC 8.2 provides libgfortran.5.dylib.

While investigating the source of this problem, I downloaded the numpy source
and tried building it. The resulting libraries have no coupling to any Fortran library that I can find.  I can find no Fortran source code files in the numpy source,
except in tests or documentation.

I am working on a MacBook laptop, running macOS Mojave, and so am using the Accelerate framework to supply BLAS.

I do not understand why the pip installation of numpy includes a Fortran runtime library. Can someone explain to me what I am missing?


More information about the NumPy-Discussion mailing list