Graphviz 环境变量设置
今天晚上解决了一个错误,如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAArwAAABLCAMAAAClbKT5AAAAAXNSR0IArs4c6QAAAFdQTFRF/////2YA/2a3/5Hc/wBm/9uR/zqR/wAAAAD//7dm/wA6//+3/9v//zoA///b8PDx/7f/9fX1/5E66+vr+fn5mJiY/4ZmOpH//5GX/146XQD/pO7/MDAwD4NU9AAACbNJREFUeNrtXOli4ygMjh0fpelMU3enM53d93/ODYckJMBXrjqVfoynNggkPgsBn7Pb3Vj+/t7dVUT7x6ff7ArP8e9M2VvZGbW3f/o3fvJyYS++3HtUFso/v97eXl/fc4+eVFQuIHcB7/eRv08+uMFV3j8j8l5AaDZ44oH324uCV+WbgHeoL9t62/ddon/o+yYpabobOOPQ9/WV2/X6pN1fWloxGtnxGav//PKQkbfaz3LXzcCbuvk64C3YvQ3wZsfn3uA1fZ9GHu/x0c66ev1xReM/fxxXgdc0ZyKomQAvgSvfbgl87H7l/NLvUzvQ7ll6TsVhXCbKn2KiBMrQ4dX1fu7cGdUbBW+sv8+HZALvyLhFesrl5P0YvI2dOPfLwbsaSo8N3my5NeCt6lON/XT5wQ5gLRKhI16XgDeuNwZeqd9kouwc8MZ6VoPXGue6ZuwbZ9yr1PYhJBsfANrnH/0f94pX/jaqrP74EByuB4jkcP/nj04EFJf72f90O9RPzvH6rZ7njy5OlL3ig5wpQvmqs4WO+Le9djuyC+rj8wJ4od3QDtVbBt62GZgdaPdMPa5XZro8JT3kZ3j37BXBa2CirPj4GJpA43qAg4MfwmMM3qx+0Bv0WfAO9iUQ44Z+ke3J8QE9vUwNBHht32iQa/fWR/AcPHhfTu/4yV8hIkTgDe4LV4wYcJ+DFyPQ50toB+JCcA7Ud9dMBKSIJCJUtXeOxvrWI2RXsb4EL7SL5dZFXutHbseyyOv67V0yWp4ghd6ChtwVwOWs/EjHB++LeoiDASIVtpTqN+Qv0Ofxko4b+kXokeWoX2ORt/cpE4IX33gB3sbePQE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Ul4EvCoqX0sy4H10LpKKgldF5SuBd4rqp6Ki4FVRuSx4U6qfisrWIq+kwKmobAa8M38bS0Xla+a8Cl4VBa+Kyk3AK6h+KirbAa+k+qmobAe8KioKXhUVBa+KioJXRcGroqLgVVFR8KooeFVUNgxe+RO7g55TqGwm8hr4KSlxVVHZQtowhF9IlVcVFQWvioqmDSoqumBTeZS0QUVFwauichvwvit4VbYJ3hN2FbwqmwTv+6tGXpVtgvf9lxV1hMoWwft+Cr2v6ggVBa+KioJXRUXBq6LgVVFR8KqoKHhVFLwWvG/qCJWNgvftP3WEikZeFZVb57z/A17+vabpdvl8AAAAAElFTkSuQmCC" alt="" />
解决方法:
一、
安装graphviz-2.38
1.添加系统环境变量
.建立变量名GRAPHVIZ_DOT
值为安装的路径C:\Program Files (x86)\Graphviz2.34\bin\dot.exe
2. 设置环境变量 在用户环境变量添加以下一个变量
.建立变量名 GRAPHVIZ_INSTALL_DIR, 值为如C:\Program Files (x86)\Graphviz2.34
3 在系统环境变量 建立变量名PATH中添加Graphviz的bin目录路径,如C:\Program Files (x86)\Graphviz2.34\bin
二、
安装 graphviz-0.6
Python setup.py install
三、
>>> from graphviz import Digraph
>>> dot = Digraph(comment='The Round Table')
>>> dot.node('A', 'King Arthur')
>>> print(dot.source)
// The Round Table
digraph {
A [label="King Arthur"]
}
>>> dot.render('test-output/round-table.gv', view=True)
'test-output/round-table.gv.pdf'
结果:
Graphviz 环境变量设置的更多相关文章
- SQL*Plus环境变量设置浅析
SQL*Plus的使用环境是可以通过login.sql 或 glogin.sql脚本来设置的,可能很多初学者或不习惯使用SQL*Plus的老鸟都不知道.因为在如今UI工具(Toad.PL/SQL De ...
- [Java] Tomcat环境变量设置
@echo off title Tomcat环境变量设置 color 0a set /p inputTH=D:\Work\024_Tomcat if /i "%inputTH%"= ...
- java环境变量设置
java环境变量设置 1.打开我的电脑--属性--高级--环境变量 2.新建系统变量JAVA_HOME 和CLASSPATH 变量名:JAVA_HOME 变量值:C:\Program Files\Ja ...
- AIX系统的环境变量设置
AIX系统的环境变量设置 用户环境的定义是通过设置环境变量来实现的.AIX系统主要使用两大类profile文件来定义用户环境.一类是用来为所有用户定制环境,另一类是为个人定义自己的环境. 登录时,sh ...
- tomcat配置及使用 环境变量设置
Tomcat的配置及测试: 第一步:下载tomcat,然后解压到任意盘符 第二步:配置系统环境变量 我这里是tomcat5.5,解压到的D盘 (路径为: D:\Program Files\tomcat ...
- jdk-tomcat环境变量设置
1.export命令直接在shell下设置 export JAVA_HOME=/home/yn4a/jdk1.6.0_16export PATH=$JAVA_HOME/bin:$PATHexport ...
- 【转】linux环境变量设置
1. 显示环境变量HOME $ echo $HOME /home/terry 2. 设置一个新的环境变量WELCOME $ export WELCOME="Hello!" $ ec ...
- linux 学习:环境变量设置
一.临时环境变量 临时环境变量,只对当前打开的shell生效,shell关闭后,环境变量失效. 设置方法一: 分两步 MYPARA=hello export MYPARA 设置方法二:一步完成 exp ...
- 【Linux】环境变量设置
在Windows中环境变量设置是非常easy的事情.例如以下图.仅仅要右键我的电脑->高级系统设置->环境变量,选择Path之后,点击"编辑"就能够输入你要加入的内容. ...
随机推荐
- 前端 websocket用法
<!DOCTYPE html> <meta charset="utf-8" /> <title>WebSocket Test</title ...
- 打印信息,通过.jasper工具将集合输出到PDF文件 然后利用打印机打印文件
我们上一次成功的利用iReport工具制作了一张报表,并且预览了报表最后的效果,也生成了格式为“jrpxml”.“jrxml”与“jasper”的文件.这次,我们使用jasper提供的java的api ...
- WIN7,安装所以软件都提示error writing temporary file
执行: icacls C:\Users\Administrator\Desktop /setintegritylevel H
- UVa 1600 Patrol Robot(三维广搜)
A robot has to patrol around a rectangular area which is in a form of m x n grid (m rows and ncolumn ...
- initialize flexnet service failed error code 50003
网络上下载回来的绿色版Xshell/Xftp在每次启动时都会报这个错,通过FlexNet Licensing Service 安装与卸载脚本了解到,程序 启动的时候会检查FlexNet Licensi ...
- JavaScript获取DOM对象的几种方式
1.getElementById() 方法可返回对拥有指定 ID 的第一个对象的引用 2.getElementsByName() 方法可返回带有指定名称的对象的集合 3.getElementsByTa ...
- springboot 项目添加jaeger调用链监控
1.添加maven依赖<dependency> <groupId>io.opentracing.contrib</groupId> <artifactId&g ...
- 5J - 复习时间
为了能过个好年,xhd开始复习了,于是每天晚上背着书往教室跑.xhd复习有个习惯,在复习完一门课后,他总是挑一门更简单的课进行复习,而他复习这门课的效率为两门课的难度差的平方,而复习第一门课的效率为1 ...
- How to update XENTRY Connect C5 software with .iso file
07.2018 Xentry Mercedes SD Connect c5 software update manual for newbies: Important: If you have XDO ...
- git报“commiter email "root@localhost.localdomain"does not match your user account”
首先检查账户邮箱配置是否正确,检查方法: git config --list 发现邮箱及帐号配置正确,但是git push时仍然报如题错误: 原因:git执行add.commit 时已经记录下了做了该 ...