Installing Python Matplotlib in Ubuntu 12.04

Installing Python Matplotlib in Ubuntu 12.04 directly was quite a mess and I ended up with some weird errors.
A cleaner and smoother way to install matplotlib was using Pip. I wonder why it never crossed my mind given that fact, I had already used Pip for installation in the Python Flask MySQL tutorial.

In order to install matplotlib in Ubuntu 12.04, run the following code :

sudo apt-get install python-pip
easy_install -U distribute
sudo apt-get install libfreetype6-dev libpng-dev
sudo pip install matplotlib
Keep watching this space for a tutorial on getting started with creating graphs using Python and Matplotlib.
Post a Comment