Skip to content Skip to sidebar Skip to footer

Installing Matplotlib For Python3 On Ubuntu

I'm running Ubuntu 12.04, and I need to use matpltlib in Python 3.2.3. I successfully installed it using sudo apt-get install python-matplotlib But now it works only in Python 2.7

Solution 1:

In case anyone else stumbles upon this, just use

sudo apt-get install python3-matplotlib

There are many packages involved with matplotlib and using apt-get instead of pip this is the officially recommended approach.

Solution 2:

if you are in virtualenv example: workon cv #cv is my virtualenv name

$ workon cv
$ pip install matplotlib

Post a Comment for "Installing Matplotlib For Python3 On Ubuntu"