您的位置:首页 > 运维架构 > Linux

在linux上安装NumPy,Matplotlib,SciPy和IPython

2016-02-28 19:07 573 查看
大部分Linux发行版都有NumPy的软件包。 我们将针对一些流行的Linux发行版给出安装步骤。

(1) 要在Red Hat上安装NumPy,请在命令行中执行如下命令:

yum install python-numpy

(2) 要在Mandriva上安装NumPy,请在命令行中执行如下命令:

urpmi python-numpy

(3) 要在Gentoo上安装NumPy,请在命令行中执行如下命令:

sudo emerge numpy

(4) 要在Debian或Ubuntu上安装NumPy,请在命令行中执行如下命令:
sudo apt-get install python-numpy

下表给出了各Linux发行版中相关软件包的名称以供参考。

Linux发行版      NumPy                           SciPy                                  Matplotlib                      IPython

Arch Linux        python-numpy               python-scipy                      python-matplotlib         ipython

Debian              python-numpy               python-scipy                      python-matplotlib         ipython

Fedora              numpy                             python-scipy                      python-matplotlib         ipython

Gentoo             dev-python/numpy        scipy                                    matplotlib                       ipython

OpenSUSE     python-numpy,              python-numpy-devel         python-scipy                 python-matplotlib  ipython

Slackware       numpy                             scipy                                     matplotlib                       ipython

参考:<<python基础教程>>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: