在ubuntu下手动安装scipy-numpy-matplotlib-ipython

iefan posted @ 2013年5月07日 15:44 in 程序设计与学习 , 3768 阅读

当然最好的办法就是用easy_install,或者sudo apt-get直接安装,对于想安装最新版的可采用下面的方法进行安装。

一、安装scipy,numpy
1. 下载scipy与numpy的package
sudo apt-get install libatlas-base-dev(科学计算库)
sudo apt-get install gfortran(编译器)

2. 执行下面的命令:

export BLAS=/usr/lib/libblas/libblas.so
export LAPACK=/usr/lib/lapack/liblapack.so
export ATLAS=/usr/lib/atlas-base/libatlas.so
必须要安装python-dev才行,否则第4步的编绎无法通过。

3. 分别进入numpy,scipy的目录, 执行(安装numpy,scipy)
python setup.py build –fcompiler=gnu95
sudo python setup.py install –prefix=/usr/local

二、安装matplotlib
先安装libfreetype6-dev,否则编绎通不过
sudo apt-get install libfreetype6-dev
到matplotlib目录,
python setup.py build
sudo python setup.py install即可。

三、安装ipython
下载ipython压缩包并解压,到matplotlib目录,
python setup.py build
sudo python setup.py install即可。

Avatar_small
commercial cleaning 说:
2021年11月15日 22:57

Just what is the answer for any to avoid all that after manufacturing messes available? From manufacturing dust as a result of sheetrock to help you simple dirt that is tracked though your private home, house maintaining service will help uou restore order to your residence - and revel in the connection between your unique additions. They is the ones who can remove mud, debris, sawdust, and several other dirt that's piled up whenever the manufacturing workers allowed to remain.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter