can't build matplotlib (png package issue)

后端 未结 3 1784
隐瞒了意图╮
隐瞒了意图╮ 2021-01-08 01:12

try to build matplotlib on fedora-18, build fails with

...
 png: no  [pkg-config information for \'libpng\' could not
                        be found.]
...
         


        
3条回答
  •  不要未来只要你来
    2021-01-08 01:44

    Sounds like you don't have libpng-devel installed. This install is not handled by pip, so you'll need to install it yourself.

    You should be able to install it via yum.

    sudo yum install libpng-devel
    

    You may also need freetype. Maybe try yum-builddep matplotlib?

提交回复
热议问题