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

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

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest