Ubuntu下安装numpy and matplotlib
安装numpy相对简单,以下命令可以完成
apt-get install python-numpy
apt-get install python-scipy
安装matplotlib相对复杂一些
需要先安装其依赖的包libpng和freetype
安装libpng:
sudo apt-get install libpng-dev
安装freetype:
cd ~/Downloads
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.10.tar.gz
tar zxvf freetype-2.4.10.tar.gz
cd freetype-2.4.10/
./congfigure
make
sudo make install
安装matplotlib
sudo apt-get install python-matplotlib
安装matplotlib
sudo apt-get install python-matplotlib