Installation — Matplotlib 3.5.1 documentation
matplotlib.org › stable › usersIf you are using the Python version that comes with your Linux distribution, you can install Matplotlib via your package manager, e.g.: Debian / 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¶