首先树,莓派不像python直接pip就行了,它需要导入一个树莓派的缺失库 sudo apt-get install libatlas-base-dev 然后再正常导包 pip3 install matplotlib