I have installed matplotlib using pip, conda and apt but am still getting this error when I use import command.
import matplotlib.pyplot as plt
This the error message
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-20-385145dcc870> in <module>()
----> 1 import matplotlib.pyplot as plt
2 get_ipython().magic(u'matplotlib inline')
ImportError: No module named matplotlib.pyplot
How to fix this?