I'm using Ubuntu to run and compile python. When I tried to import matplotlib.pyplot it said it wasn't found. So I installed matplotlib using
pip install matplotlib
it said it installed but now I am getting the following error.
Traceback (most recent call last): File "Mat_To_Py.py", line 4, in import matplotlib. pyplot as plt File "/home/wincom/.local/lib/python2.7/site-packages/matplotlib/init.py", line 126, in from . import cbook ImportError: cannot import name cbook
What should I do to get it to work?
I've looked and see that other people have be getting different error but when I try those, it doesn't work for me.