首先: 安装matplotlib库需要安装python3-tk库: sudo apt-get install python3-tk pip3 install nose 最后: pip3 install matplotlib