The first time you configure the pydot environment, the process is still twists and turns. It seems that you are not very familiar with this mode. It was completed intermittently for two days. These are all minor requirements and minor details.
The installation sequence is also important:
1, install the python-2.7.8.amd64.msi, select only for me, otherwise the next pyparsing does not parse the path; 2, in the path to set the python path such as, D: \ python273, install the graphviz-2.26.3.msi, select for everyone otherwise error; 4. Set graphviz path in path; otherwise pydot resolution fails, such as D: \ graphviz-2.26.3 \ bin5133 install pyparsing-1.5.7.win32-py2.7.exe; 6. Extract pydot-1.0.28 to path, run the command: Python setup. PY install. Installed successfully
7. Write a test to test it.
import pydotedg = [(1,2), (1,3), (1,4) , (3,4)]g=pydot.graph_from_edges(edg)g.write_jpeg('graph.jpg', prog = 'dot')
OK. The configuration is successful!
All configuration files and test files: http://download.csdn.net/detail/ls1160/8088591
Refer:
Http://blog.csdn.net/tjhd1989/article/details/8954062
Http://www.cnblogs.com/min0208/archive/2012/05/24/2515584.html
Configure the pydot Environment