ubuntu 14.04上numpy和其他python-3.4软件包的安装过程

我是ubuntu的新手,两天前在我的LENOVO hinkpad T410机器上用Windows 7安装了ubuntu 14.04 32位,但从那以后尝试下载并在ubuntu上安装python-3.4软件包(NUMPY,SCIPY)而没有得到结果。 我通过ubuntu软件中心下载了IDLE,但numpy既没有从ubuntu软件中心运行,也没有从命令运行。

sudo apt-get install python-numpy 

它给了我:

  E: Unable to locate package python-numpy_1.8.1-1ubuntu1_i386 E: Couldn't find any package by regex 'python-numpy_1.8.1-1ubuntu1_i386' 

我也尝试过:

  pip install python-numpy 

但结果是:

  Could not find any downloads that satisfy the requirement python-numpy Cleaning up... No distributions at all found for python-numpy Storing debug log for failure in /home/sibte/.pip/pip.log 

任何初学者到ubuntu的指南。

从终端运行:

 sudo apt-get install python3-numpy 

这个软件包包含Numpy for Python 3.正如您所料,Ubuntu 14.04的Ubuntu软件中心还有一个名为python3-scipy的软件包 。 如果您安装了python3-numpy和python3-scipy并且想要使用pylab绘制图形,那么您还需要安装python3-matplotlib

我首先为python 3安装了pip

 sudo apt-get install python3-pip 

然后用pip3安装numpy

 sudo pip3 install numpy 

这也可以运行,

 sudo apt-get -y install python-numpy