learn-python/contrib/plotting-visualization/matplotlib-installation.md

808 B

Matplotlib Installation

Matplotlib is a widely used Python library for creating static, animated, and interactive visualizations. It can be installed using pip, Python's package manager.

Prerequisites

Before installing Matplotlib, ensure you have Python installed on your system. You can download and install Python from the official Python website.

Installation Steps

  1. Install Matplotlib: Open your terminal or command prompt and run the following command to install Matplotlib using pip:
pip install matplotlib
  1. Verify Installation: After installation, you can verify if Matplotlib is installed correctly by importing it in a Python environment:
import matplotlib

print(matplotlib.__version__)


Output:

3.4.3