already installed on a system, then installation of Matplotlib is very easy.
C:\Users\
>pip install matplotlib If this command fails, then use a python distribution that already has Matplotlib installed, like Anaconda, Spyder etc.
Once Matplotlib is installed, import it in your applications by adding the import module statement: import matplotlib Now Matplotlib is imported and ready to use:
version attribute.
Example import matplotlib print(matplotlib.__version__)two underscore characters are used in version.