用LAPACK/BLAS安装numpy的最简单方法是什么? [英] What is the easiest way to install numpy with LAPACK/BLAS?

查看:335
本文介绍了用LAPACK/BLAS安装numpy的最简单方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ubuntu 14.04.

I'm on an Ubuntu 14.04.

我原本希望这样做:

sudo apt-get install python-numpy

本来可以,但事实并非如此……

would've worked but it isn't the case...

我尝试检查的方法是通过执行locate blas并发现似乎无关的任何内容.

The way I tried to check is by doing locate blas and found nothing that seemed relevant.

我想要一个不涉及从源代码编译的解决方案.

I would like a solution that doesn't involve me compiling from source.

理想的解决方案是使用ubuntu存储库.

The ideal solution is something that uses the ubuntu repos.

推荐答案

在Ubuntu 14.04和更高版本中,blas和lapack作为python-scipy和python3-scipy的一部分安装,因此您需要安装python-scipy.打开终端并输入:

In Ubuntu 14.04 and later, blas and lapack are installed as part of python-scipy and python3-scipy, so you need to install python-scipy. Open the terminal and type:

sudo apt install python-scipy  

此命令还将安装libblas3(基本的线性代数子程序参考实现,共享库)和liblapack3(线性代数例程的库3-共享版本)作为依赖项,如果您不这样做,还将安装python-numpy作为依赖项还没有安装.

This command will also install libblas3 (Basic Linear Algebra Subprograms reference implementations, shared library) and liblapack3 (Library of linear algebra routines 3 - shared version) as dependencies, and it will also install python-numpy as a dependency if you don't already have it installed.

这篇关于用LAPACK/BLAS安装numpy的最简单方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆