pip install pygraphviz: No package 'libcgraph' found

前端 未结 6 1041
醉梦人生
醉梦人生 2021-01-31 01:20

I succeed in installing graphviz and cgraph with

$ sudo pip install graphviz
....
Successfully installed graphviz-0.5.1

$ sudo pip ins         


        
6条回答
  •  清歌不尽
    2021-01-31 01:50

    For CentOS. As graphviz-devel is required to fix this issue, you will need to install it with yum. To do this you are required to add repo's where package is available. In my case Atomic repos worked fine.

    wget -q -O - http://www.atomicorp.com/installers/atomic | sh
    

    This will add atomic repos, then

    sudo yum install graphviz-devel
    

    And you should be able to perform

    pip install pygraphviz
    

提交回复
热议问题