pip install pygraphviz: No package 'libcgraph' found

前端 未结 6 1039
醉梦人生
醉梦人生 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 02:01

    sudo apt-get install python-dev graphviz libgraphviz-dev pkg-config
    

    or the following might be needed if you're using Python 3:

    sudo apt-get install python3-dev graphviz libgraphviz-dev pkg-config
    

    then

    pip install pygraphviz
    

提交回复
热议问题