matplotlib is not available for complier.
I installed below and it worked for me
pip install matplotlib