pip install pygraphviz: No package 'libcgraph' found

冷暖自知 提交于 2019-12-02 21:01:57
sudo apt-get install python-dev graphviz libgraphviz-dev pkg-config

then

sudo pip install pygraphviz
Rob

For MacOS, I needed to do:

$ brew install graphviz
$ sudo pip install pygraphviz 
Edouard Amosse

For fedora users:

  1. yum list available graphviz*
  2. select the appropriate package for your Fedora distribution
  3. sudo yum install 'graphviz-devel.x86_64'
  4. pip install pygraphviz

On macOS, I made it with,

$ brew install graphviz
$ sudo pip install pygraphviz

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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!