Binder fails to compile pygraphviz

I just tried running %pip install pygraphviz in a running Binder session and saw a couple things.

By default it wanted to get version 1.6.

The install failed and among the errors the following:

Package libcgraph was not found in the pkg-config search path.

This makes me think you need some additional apt packages added. Usually I use the configuration file apt.txt to add these. See here about use of apt.txt.

Try adding apt.txt with the following content based on python - pip install pygraphviz: No package 'libcgraph' found - Stack Overflow

graphviz
libgraphviz-dev
pkg-config
2 Likes