ModuleNotFoundError: No module named 'matplotlib'

I cannot draw a plot in a jupyter notebook. It says: "ModuleNotFoundError: No module named 'matplotlib' " even though I have installed the matplotlib.

I have Ubuntu 18.04 as OS.

(By the way, I noticed that I have several python versions in my /usr/lib like, python2.7, python3 ; 3.6; 3.7 .)

1

1 Answer

try to install matplotlib for python3

e.g.:

sudo pip3 install matplotlib 

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like