Installation — Matplotlib 3.5.1 documentation
matplotlib.org › stable › usersDebian / Ubuntu: sudo apt-get install python3-matplotlib. Fedora: sudo dnf install python3-matplotlib. Red Hat: sudo yum install python3-matplotlib. Arch: sudo pacman-S python-matplotlib. Installing from source¶ If you are interested in contributing to Matplotlib development, running the latest source code, or just like to build everything yourself, it is not difficult to build Matplotlib from source.