If you are running Ubuntu, you may want to install pygraphviz from standard (apt) package manager. $ pip install percolation or $ python setup.py install For greater control of customization (and ...