Matplotlib – downloading modules using pip

The usual way to download additional Python modules is by using pip. The pip module comes pre-installed with the latest version of Python (3.4 and above).

Note

If you are using an older version of Python, you might have to download both pip and setuptools yourself.

In addition to using the Python installer, there are several other precompiled Windows executables that make it easy for us to install Python modules such as Matplotlib.

This recipe will show how to successfully install Matplotlib via a Windows executable, as well as using pip in order to install the additional modules that the Matplotlib library requires.

Getting ready

All we need to do to download the required Python modules to use the Matplotlib ...

Get Python GUI Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.