Reputation: 55
I have read several of the issues related to the same problems but didn't find a solution. I am working on Ubuntu 20.04.
I installed matplotlib in a conda environment called math.
conda install matplotlib
(conda 4.10.3)
No error, it went well it seems. But then, when I launch a jupyter notebook and tries
import matplotlib.pyplot as plt
I get
ModuleNotFoundError: No module named 'matplotlib.pyplot'
However, running
import matplotlib as plt
works without problem.
I launch the notebook from the conda math environment.
Any idea?
Thanks a lot
Upvotes: 0
Views: 954
Reputation: 11
pip install matplotlib
Hope it helps..
Upvotes: 1