Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7419601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:06:00+00:00 2026-05-29T08:06:00+00:00

numpy.distutils.system_info.BlasNotFoundError: Blas (http://www.netlib.org/blas/) libraries not found. Directories to search for the libraries can be

  • 0
numpy.distutils.system_info.BlasNotFoundError: 
    Blas (http://www.netlib.org/blas/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [blas]) or by setting
    the BLAS environment variable.

Which tar do I need to download off this site?

I’ve tried the fortrans, but I keep getting this error (after setting the environment variable obviously).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:06:00+00:00Added an answer on May 29, 2026 at 8:06 am

    The SciPy webpage used to provide build and installation instructions, but the instructions there now rely on OS binary distributions. To build SciPy (and NumPy) on operating systems without precompiled packages of the required libraries, you must build and then statically link to the Fortran libraries BLAS and LAPACK:

    mkdir -p ~/src/
    cd ~/src/
    wget http://www.netlib.org/blas/blas.tgz
    tar xzf blas.tgz
    cd BLAS-*
    
    ## NOTE: The selected Fortran compiler must be consistent for BLAS, LAPACK, NumPy, and SciPy.
    ## For GNU compiler on 32-bit systems:
    #g77 -O2 -fno-second-underscore -c *.f                     # with g77
    #gfortran -O2 -std=legacy -fno-second-underscore -c *.f    # with gfortran
    ## OR for GNU compiler on 64-bit systems:
    #g77 -O3 -m64 -fno-second-underscore -fPIC -c *.f                     # with g77
    gfortran -O3 -std=legacy -m64 -fno-second-underscore -fPIC -c *.f    # with gfortran
    ## OR for Intel compiler:
    #ifort -FI -w90 -w95 -cm -O3 -unroll -c *.f
    
    # Continue below irrespective of compiler:
    ar r libfblas.a *.o
    ranlib libfblas.a
    rm -rf *.o
    export BLAS=~/src/BLAS-*/libfblas.a
    

    Execute only one of the five g77/gfortran/ifort commands. I have commented out all, but the gfortran which I use. The subsequent LAPACK installation requires a Fortran 90 compiler, and since both installs should use the same Fortran compiler, g77 should not be used for BLAS.

    Next, you’ll need to install the LAPACK stuff. The SciPy webpage’s instructions helped me here as well, but I had to modify them to suit my environment:

    mkdir -p ~/src
    cd ~/src/
    wget http://www.netlib.org/lapack/lapack.tgz
    tar xzf lapack.tgz
    cd lapack-*/
    cp INSTALL/make.inc.gfortran make.inc          # On Linux with lapack-3.2.1 or newer
    make lapacklib
    make clean
    export LAPACK=~/src/lapack-*/liblapack.a
    

    Update on 3-Sep-2015:
    Verified some comments today (thanks to all): Before running make lapacklib edit the make.inc file and add -fPIC option to OPTS and NOOPT settings. If you are on a 64bit architecture or want to compile for one, also add -m64. It is important that BLAS and LAPACK are compiled with these options set to the same values. If you forget the -fPIC SciPy will actually give you an error about missing symbols and will recommend this switch. The specific section of make.inc looks like this in my setup:

    FORTRAN  = gfortran 
    OPTS     = -O2 -frecursive -fPIC -m64
    DRVOPTS  = $(OPTS)
    NOOPT    = -O0 -frecursive -fPIC -m64
    LOADER   = gfortran
    

    On old machines (e.g. RedHat 5), gfortran might be installed in an older version (e.g. 4.1.2) and does not understand option -frecursive. Simply remove it from the make.inc file in such cases.

    The lapack test target of the Makefile fails in my setup because it cannot find the blas libraries. If you are thorough you can temporarily move the blas library to the specified location to test the lapack. I’m a lazy person, so I trust the devs to have it working and verify only in SciPy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The numpy.equal function does not work if a list or array contains strings: >>>
import numpy a = numpy.array([20090913, 20101020, 20110125]) Can you explain why numpy.datetime64(a.astype(S8).tolist()) converts correctly
numpy's ndarray class is defined as class ndarray(__builtin__.objects) From what I can gather, __builtin__.objects
Is there a numpy function to sum an array along (not over) a given
NumPy arrays can be indexed with an array of booleans to select the rows
Can numpy evaluate N largest elements in a multidimensional array? Say: import numpy as
In numpy one can use the 'newaxis' object in the slicing syntax to create
can someone point out a simple example of making a Python package using distutils
NumPy installer can't find python path in the registry. Cannot install Python version 2.6
How can I update Numpy into the newest one? Should I download .dmg file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.