Issue
I have 2 Jupyter notebooks in the same folder. In both of them, I import matplotlib. In the first one matplotlib runs as usual, but in the second one an error like this occurs:
Traceback (most recent call last)
c:\Users\HP\Documents\my python for data science and ml\basicmatplotlib\basicMatplotlib.ipynb Cell 1 in <cell line: 2>()
1 import numpy as np
----> 2 import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib'
This is a screenshot of the error:
On the left: file runs normally.
On the right: file error.
Solution
try to install matplotlib in terminal
Answered By - Gustavo Michel
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.