The following instructions are for Debian/Ubuntu Linux. For other platforms, the setup is generally the same, with the exeption of installing system dependencies.
install dependencies on Debian/Ubuntu:
$ sudo apt-get install python-pip python-matplotlib
install multi-mechanize from PyPI using Pip:
$ sudo pip install -U multi-mechanize
install dependencies on Debian/Ubuntu:
$ sudo apt-get install python-virtualenv python-matplotlib
install multi-mechanize from PyPI in a virtualenv:
$ virtualenv --system-site-packages ENV
$ cd ENV
$ source bin/activate
(ENV)$ pip install multi-mechanize
install dependencies on Debian/Ubuntu:
$ sudo apt-get install build-essential libfreetype6-dev libpng-dev
$ sudo apt-get install python-dev python-virtualenv
install multi-mechanize and matplotlib from PyPI in a virtualenv:
$ virtualenv ENV
$ cd ENV
$ source bin/activate
(ENV)$ pip install multi-mechanize
(ENV)$ pip install matplotlib