在ubuntu上安装matplotlib出现了“error: command 'gcc' failed with exit status 1”的报错信息,解决方法如下(安装依赖包即可):
sudo apt-get install libpng-dev
sudo apt-get install libfreetype6-dev
sudo apt-get install libpng12-0
在ubuntu上安装matplotlib出现了“error: command 'gcc' failed with exit status 1”的报错信息,解决方法如下(安装依赖包即可):
sudo apt-get install libpng-dev
sudo apt-get install libfreetype6-dev
sudo apt-get install libpng12-0