The Brew install did not work for me, so here is how to install the Graphviz backend with MacPorts.
- Install XCode. The complete AppStore version is not necessary: you can simply install the command line tools with
xcode-select —installand click on ‘Install’ in the window that opens (if it is not already installed). - Install MacPorts. There is a pkg installer for Catalina.
- In a new terminal, run
sudo port -v selfupdateand thensudo port install graphviz - If MacPorts returns with errors, you might have to fix some ports:
sudo port -f activate xorg-xorgprotosudo port -f activate xorg-libX11sudo port select --set python python38
- If you use the Python API for Graphviz, you can run
pip install graphvizin your dedicated environment, andimport graphvizin your code.