Ubuntu10.04 python2.6下安装matplotlib环境

一、准备工作
1.sudo apt-get install python-numpy
2.sudo apt-get install python2.6-dev
3.sudo apt-get install libpng12-dev
4.sudo apt-get install libfreetype6-dev
5.sudo apt-get install python-mysqldb

二、开始安装Matplotlib
1. 下载安装文件:
http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/matplotlib-1.0.0.tar.gz/download

2.安装
tar zxvf matplotlib-1.0.0.tar.gz
cd matplotlib-1.0.0
python setup.py build
sudo python setup.py install

posted @ 2014-05-20 11:08  smallcoderhujin  阅读(238)  评论(0编辑  收藏  举报