Python can';t构建matplotlib(png包问题)

Python can';t构建matplotlib(png包问题),python,linux,matplotlib,fedora,Python,Linux,Matplotlib,Fedora,尝试在fedora-18上构建matplotlib,构建失败 ... png: no [pkg-config information for 'libpng' could not be found.] ... * The following required packages can not be built: * png 我应该怎么做/检查以构建

尝试在fedora-18上构建matplotlib,构建失败

...
 png: no  [pkg-config information for 'libpng' could not
                        be found.]
...
                        * The following required packages can not be built:
                        * png

我应该怎么做/检查以构建png包?

听起来好像您没有安装
libpng-devel
。此安装不由pip处理,因此您需要自己安装

您应该能够通过
yum安装它

sudo yum install libpng-devel

您可能还需要
freetype
。也许可以尝试
yum builddep matplotlib

在Cent Os 7下,我可以在安装libpng static后安装matplotlib。请尝试libpng static和libpng devel。

在mint/kubuntu中,从今天起,它的名称是:
libpng16 devtools
,因此安装它的命令是:


sudo apt get install libpng16 devtools

我确实安装了linpng。但是当我尝试安装头文件(libpng-dev)时,yum告诉我“没有可用的libpng-dev软件包”。听起来头文件好像在其他软件包中,但它的名称是什么?我找到了它,它叫libpng-develMy-mission,对此表示抱歉。我没有用软呢帽,我很确定它的名字和我的天赋不一样。很高兴您找到了它。您可以使用
sudo-yum-install-python-matplotlib