# How to install matplotlib

Installing matplotlib should be as easy as running pip install matplotlib. You may need to upgrade pip before running this command.

Depending on where we want to display graphs (e.g. Jupyter notebooks or Tkinter applications), we may also need to install additional libraries.

However for this section we'll be displaying graphs purely on windows that appear when we execute our Python files, or saving graphs to an image file. For those two use cases, we don't need to install anything apart from matplotlib.

For more information on installation, the official documentation (opens new window) is a good resource.