Hernan
Hernan

Reputation: 1148

ImportError: No module named matplotlib with matplotlib installed

The code line:

import matplotlib

The error:

ImportError: No module named 'matplotlib'

The problem:

which python3.4    % /usr/bin/python3.4

Where is matplotlib installed?

sudo find /usr | grep matplotlib  % /usr/lib/pymodules/python2.7/matplotlib/...

Some considerations:

Solutions:

How can i make matplotlib work for python3? Thanks

Upvotes: 14

Views: 29805

Answers (1)

Hernan
Hernan

Reputation: 1148

Just when i was about to make the question realized that instead of typing

sudo apt-get install python-matplotlib

I needed to type

sudo apt-get install python3-matplotlib

Upvotes: 26

Related Questions