This site tends to release installers a little earlier than the official matplotlib site.Ĭopy the. If you don’t see a file matching your installed version of Python, look at what’s available at.
For example, if you’re using a 32-bit version of Python 3.5, you’ll need to download matplotlib-1.4.3-cp35-none-win32.whl. whl) that matches the version of Python you’re using. Go to and look for a wheel file (a file ending in. Next you’ll need an installer for matplotlib. This is a free set of developer tools for Windows. Go to, click Downloads, and look for Visual Studio Community.
To install matplotlib on Windows you’ll first need to install Visual Studio, which will help your system install the packages that matplotlib depends on. If you have trouble installing matplotlib using pip, try leaving off the -user flag. If you need help using pip, see the instructions in Chapter 12. Checking if matplotlib is already installedįirst, check if matplotlib is already installed on your system:
When you click a visualization in the gallery, you can see the code used to generate the plot. If you’d like to see the kinds of visualizations you can make with matplotlib, see the official matplotlib sample gallery. In this section, I’ll recommend one method for each operating system. There are many different ways to install matplotlib to your system.
Please upgrade your Python as Python 2.7 is no longer maintained. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.ĭEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please see for advice on fixing the underlying issue. This will fail in a future version of pip. Pip install matplotlib WARNING: pip is being invoked by an old script wrapper.