如何在Windows上使用pyreverse [英] How to use pyreverse on Windows
问题描述
我想使用pyreverse创建图类。我下载了它,并在使用此命令时:
I would like to create diagram class using pyreverse. I download it, and when I use this command:
pyreverse.bat -c PyreverseCommand -a1 -s1 -f ALL -o png test.py
我收到一个错误名称'点'未被识别...。 。什么是点,如何创建图表类?
感谢您的回答。
I get an error "The name 'dot' is not recognized....". What is "dot", how can I create diagram class? Thanks for answers.
推荐答案
点是Graphviz的一部分( http://www.graphviz.org/About.php )。您需要安装Graphviz,然后修改PATH,以便Windows(我假设您使用的是Windows)可以找到它。 命令pyreverse生成graphviz / dot知道的所有格式的图。 ( http://www.logilab.org/blogentry/6883 。)
dot is part of Graphviz (http://www.graphviz.org/About.php). You need to install Graphviz and then modify your PATH so Windows (what I assume you are using) can find it. "the command pyreverse generates the diagrams in all formats that graphviz/dot knows." (http://www.logilab.org/blogentry/6883.)
一旦安装了点可执行文件,就可以在
中找到C:\Program Files(x86)\Graphviz2.36\bin\
Once installed dot executable can be found in C:\Program Files (x86)\Graphviz2.36\bin\
要确保已正确安装,请运行comand
To make sure it was installed properly run the comand
C:\Program Files (x86)\Graphviz2.36\bin>dot -Txxx
您应该看到类似格式: bmp佳能cmap cmapx cmapx_np点emf emf emfplus eps图gd gd2 gif gv imap inp_np ismap jpe jpeg jpg图元文件pdf pic普通的普通扩展名png pov ps ps2 svg svgz tif tiff tk vml vmlz xdot xdot1.2 xdot1.4 *
And you should see something like: "Format: "xxx" not recognized. Use one of: bmp canon cmap cmapx cmapx_np dot emf emfplus eps fig gd gd2 gif gv imap imap_np ismap jpe jpeg jpg metafile pdf pic plain plain-ext png pov ps ps2 svg svgz tif tiff tk vml vmlz vrml wbmp xdot xdot1.2 xdot1.4"*
您可以在此处下载Graphviz: http://www.graphviz.org/Download_windows.php
You can download Graphviz here: http://www.graphviz.org/Download_windows.php
这篇关于如何在Windows上使用pyreverse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!