All Courses

import matplotlib.pyplot as plt ModuleNotFoundError Can anyone help me how to imort this?

By Pp5344229@gmail.com, 3 months ago
  • Bookmark
0

import matplotlib.pyplot as plt


ModuleNotFoundError
Cell In [3], line1
----> 1 import matplotlib.pyplot as plt


ModuleNotFound:No module named 'matplotlib'

Can anyone help me how to imort this?

Imprt
Matplotlib
Pandas
Python
2 Answers
0
Hitendradixit18@gmail.com

Go to terminal

Type -

pip install matplotlib 

and enter

After installing this library this error will not come

0
Goutamp777

This error message is indicating that the Python module "matplotlib" is not installed on your system, and therefore the import statement is failing. To fix this issue, you can try installing matplotlib using the package manager for your system (e.g., pip on Windows or pip3 on Ubuntu).

For example, you can use the following command to install matplotlib:

pip install matplotlib

or

pip3 install matplotlib

This should install the matplotlib package, and the import statement in your code should then work correctly.

Your Answer

Webinars

Live Masterclass on : "How Machine Get Trained in Machine Learning?"

Mar 30th (7:00 PM) 516 Registered
More webinars

Related Discussions

Running random forest algorithm with one variable

View More