下载安装
windows版本下载地址:http://www.graphviz.org/Download_windows.php。选择需要的版本就行了。
![image.png](https://img-blog.csdnimg.cn/img_convert/55093eedbc824f6d3c182bfd092ad9d8.png#clientId=ucceab91b-cf89-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=304&id=uaa5cff3b&margin=%5Bobject%20Object%5D&name=image.png&originHeight=304&originWidth=856&originalType=binary&ratio=1&rotation=0&showTitle=false&size=50737&status=done&style=none&taskId=u5a2fe583-73b1-4345-a362-fa41da587ba&title=&width=856)
安装时勾选下面方框中的选项,将路径添加到系统路径中。【这一步不选的话就需要人为添加路径】
![在这里插入图片描述](https://img-blog.csdnimg.cn/img_convert/077172ee8202919f15af1b5f03c3bc05.png#clientId=ucceab91b-cf89-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=360&id=u2cd01b91&margin=%5Bobject%20Object%5D&name=image.png&originHeight=360&originWidth=499&originalType=binary&ratio=1&rotation=0&showTitle=false&size=20415&status=done&style=none&taskId=u84505982-f798-4dfe-ad04-8f470e1d0ab&title=&width=499#pic_center)
配置环境变量
如果上一步勾选了,这一步就不必要了。否则需要添加环境变量。将graphviz
安装目录下的bin
文件夹添加到Path
环境变量中。我的安装目录如下,各自不同。
![在这里插入图片描述](https://img-blog.csdnimg.cn/img_convert/19d286a7de51cea493a0f2154139a5b2.png#clientId=ucceab91b-cf89-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=372&id=u20bf6d0d&margin=%5Bobject%20Object%5D&name=image.png&originHeight=372&originWidth=881&originalType=binary&ratio=1&rotation=0&showTitle=false&size=48570&status=done&style=none&taskId=u3d6c0927-9df4-4cae-9b78-9ff1c07de7f&title=&width=881#pic_center)
安装测试
进入命令行界面,输入dot -version
,然后按回车,如果显示graphviz
的相关版本信息,则安装配置成功。
![https://img-blog.csdnimg.cn/img_convert/e311ac670cfccf776c925c0527616d62.png#clientId=ucceab91b-cf89-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=656&id=uba514b8e&margin=[object Object]&name=image.png&originHeight=656&originWidth=1033&originalType=binary&ratio=1&rotation=0&showTitle=false&size=60120&status=done&style=none&taskId=u6413b688-a3dc-46f2-a64d-47ed6181fbe&title=&width=1033](https://img-blog.csdnimg.cn/img_convert/e311ac670cfccf776c925c0527616d62.png#clientId=ucceab91b-cf89-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=656&id=uba514b8e&margin=%5Bobject%20Object%5D&name=image.png&originHeight=656&originWidth=1033&originalType=binary&ratio=1&rotation=0&showTitle=false&size=60120&status=done&style=none&taskId=u6413b688-a3dc-46f2-a64d-47ed6181fbe&title=&width=1033#pic_center)