How to Install Matplotlib on python?

Last Updated : 18 Jul, 2025

Matplotlib is a Python library used for creating 2D plots and visualizations. It is built on top of NumPy and works well with the broader SciPy stack. This guide explains how to install Matplotlib on Windows using both Conda and PIP.

Installation Using Conda

If you're using Anaconda, you can install Matplotlib using the following command:

conda install matplotlib

Type 'y' when prompted to proceed with the installation.

You will get a similar message once the installation is complete. As seen below: