Ubuntu11.10安装numpy和scipy
一.获取、安装numpy和scipy:
1.安装git:
sudo apt-get install git
2.安装Python-dev:
sudo apt-get install python-dev
3.安装g++:
sudo apt-get install g++
4.安装libatlas-base-dev(科学计算库):
sudo apt-get install libatlas-base-dev
5.安装gfortran(fortran编译器):
sudo apt-get install gfortran
6.获取NumPy:
git clone git://github/numpy/numpy.git numpy
7.获取SciPy:
git clone git://github/scipy/scipy.git scipy
ubuntu怎么安装python8.获取:matplotlib
sudo apt-get install python-matplotlib
9.执行下列命令:
export BLAS=/usr/lib/libblas/libblas.so
export LAPACK=/usr/lib/lapack/liblapack.so
export ATLAS=/usr/lib/atlas-base/libatlas.so
9.编译、安装scipy:
cd进scipy的目录,执行:
1):python setup.py build --fcompiler=gnu95
2):sudo python setup.py install --prefix=/usr/local
10.编译、安装numpy:
cd进scipy的目录,执行:
1):python setup.py build --fcompiler=gnu95
2):sudo python setup.py install --prefix=/usr/local
二.获取、安装matplotlib:
1.安装libfreetype6-dev:
sudo apt-get install libfreetype6-dev
2.下载源码:(matplotlib-1.2.)
github/matplotlib/matplotlib/downloads
3.cd进matplotlib目录,执行:
1):python setup.py build
2):sudo python setup.py install

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。