Can't upgrade Scipy

后端 未结 4 930
夕颜
夕颜 2020-12-09 11:10

I\'m trying to upgrade Scipy from 0.9.0 to 0.12.0. I use the command:

sudo pip install --upgrade scipy
4条回答
  •  难免孤独
    2020-12-09 12:05

    The error messages all state the same: You lack BLAS (Basic Linear Algebra Subroutines) on your system, or scipy cannot find it. When installing packages from source in ubuntu, as you are effectively trying to do with pip, one of the easiest ways to make sure dependencies are in place is by the command

    $ sudo apt-get build-dep python-scipy
    

    which will install all packages needed to build the package python-scipy. You may in some cases run into the problem that the version of the source package you are trying to install have different dependencies than the version included with ubuntu, but in your case, I think chances are good that the above command will be sufficient to fetch BLAS for you, headers included.

提交回复
热议问题