// 使用 homebrew 安装 brew install graphviz // 如果使用 brew 安装后没有 graphviz 命令就再用 pip 安装一遍 pip install graphviz