Configure the pydot Environment

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.