Fabricio Buzeto
Fabricio Buzeto

Reputation: 1242

Not able to install matplotlib on Ubuntu 12.04

I'm trying to install python-matplotlib on a Ubuntu 12.04 machine. The two paths that I've found doesn't lead me to success.

PATH 1

if I try:

sudo pip install matplotlib

I get

The following required packages can not be built: freetype

And freetype leads is already insalled and even though I cant seem to solve this dependency

PATH 2

If I try:

sudo apt-get install python-matplotlib

I get that python-tz is not installable.

OBS: pytz is already installed in the machine

Either way, I'm on a dead end.

Upvotes: 1

Views: 302

Answers (1)

wim
wim

Reputation: 362707

You are missing development dependencies (i.e. header files and stuff). First try

sudo apt-get install libfreetype6 libfreetype6-dev

Then rinse and repeat the pip installer ...

Upvotes: 3

Related Questions