Open In App

Environment Setup for Matplotlib

Last Updated : 12 Jul, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report
Matplotlib is an overall package for creating static, animated, and interactive visualizations in Python. It literally opens up a whole new world of possibilities for you! Especially when it is used with Numpy or Pandas library, one can do unimaginable things. The plots give may give a new insight altogether. Now, the question arises i.e. How to make it running on your computer? But a more primary question would be, what are its pre-requisites or as we call it, dependencies for the software to run on your computer?

Dependencies

We're ready to get the Matplotlib on our system!

Setting up

On macOS
  • Install libpng and Freetype using brew:
    brew install libpng freetype pkg-config
  • In case you're working on MacPorts, execute the following instead:
    port install libpng freetype pkgconfig
  • Now install matplotlib from the source using:
    python -mpip install 
On Linux It's the easiest to get it on Ubuntu since you can get all the dependencies by simply using the following command:
sudo apt-get build-dep python-matplotlib

Next Article
Article Tags :
Practice Tags :

Similar Reads

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy