What is the easiest way to install BLAS and LAPACK for scipy?

前端 未结 10 547
孤城傲影
孤城傲影 2020-12-04 14:12

I would like to run a programme that someone else has prepared and it includes scipy. I have tried to install scipy with

pip install scipy

10条回答
  •  生来不讨喜
    2020-12-04 15:10

    For Debian Jessie and Stretch installing the following packages resolves the issue:

    sudo apt install libblas3 liblapack3 liblapack-dev libblas-dev
    

    Your next issue is very likely going to be a missing Fortran compiler, resolve this by installing it like this:

    sudo apt install gfortran
    

    If you want an optimized scipy, you can also install the optional libatlas-base-dev package:

    sudo apt install libatlas-base-dev
    

    Source


    If you have any issue with a missing Python.h file like this:

    Python.h: No such file or directory

    Then have a look at this post: https://stackoverflow.com/a/21530768/209532

提交回复
热议问题