matplotlib官网:https://pypi.org/project/matplotlib/
安装方法:https://matplotlib.org/stable/users/installing/index.html
Linux package manager¶
If 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