can't build matplotlib (png package issue)

后端 未结 3 1745
隐瞒了意图╮
隐瞒了意图╮ 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:43

    In mint/kubuntu as of today, it's named: libpng16-devtools, so the command to install it would be:

    sudo apt-get install libpng16-devtools

    0 讨论(0)
  • 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?

    0 讨论(0)
  • 2021-01-08 01:56

    Under Cent Os 7, I was able to install matplotlib after installing libpng-static. Please try libpng-static as well as libpng-devel.

    0 讨论(0)
提交回复
热议问题