Graphviz executable file
Http://www.graphviz.org/Download_windows.PHP
Reference: Http://blog.csdn.net/u014749291/article/details/54891087?utm_source=itdadao&utm_medium=referral
under Windows platform , Pip installs Pydot and Graphviz:
Pip Install Pygot
Pip Install Graphviz
When testing:
Import Pydot
Print Pydot.find_graphviz ()
result returns none
The following error also occurs when the drawing is running:
raise importerror:failed to import Pydot. You are must install Pydot and Graphviz for ' pydotprint ' to work.
In the final analysis,Pydot cannot find Graphviz executable files, including Dot.exe, Twopi.exe, and Neato.exe.
This is indicated in the _init_.py file in the Pydot installation directory:
Find the Graphviz installation directory, found that there is no such three EXE files, because the Windows platform can not be installed with Pip Graphviz.
So http://www.graphviz.org/Download_windows. PHP download Graphviz msi or zip file, after installation, in the path Add environment variable point to Graphviz Bin directory (the directory has the several EXE files), and then reopen the Python environment test, appear:
Indicates a successful installation.
Reference documents:
http://blog.csdn.NET/wangjian1204/article/details/50346457
http://blog.csdn.net/u011274209/article/details/52892255
Http://www.bkjia.com/Androidjc/901561.html
Configure PYDOT Environment, PYDOT environment
The first time to configure the PYDOT environment, the process is still more tortuous, it seems that the model is not very familiar. It took two days to get it off and on. It's all a small request, a little detail question.
The order of installation is also very important: 1, install Python-2.7.8.amd64.msi, select only for me, otherwise the following pyparsing resolution path; 2, set the path of Python in path such as, D:\ Python27 3, install Graphviz-2.26.3.msi, select for everyone else will be wrong , 4, in the path set Graphviz path, otherwise PYDOT resolution does not come out, such as D:\ Graphviz-2.26.3\bin 5, installation pyparsing-1.5.7.win32-py2.7.exe; 6, decompression pydot-1.0.28, go to the path, direct Run command: Python setup.py install. Installation Successful
7. Write a Test
Import Pydot
edg = [(1,2), (1,3), (1,4), (3,4)] g=pydot.graph_from_edges (EDG)
g.write_jpeg (' graph.jpg '), Prog = ' dot ')
OK, configuration is successful.
All configuration files and test files: http://download.csdn.net/detail/ls1160/8088591
Reference:
http://blog.csdn.net/tjhd1989/article/details/8954062
Http://www.cnblogs.com/min0208/archive/2012/05/24/2515584.html