即使有Graphviz,Pyreverse也会抱怨 [英] Pyreverse complaining even after having Graphviz

查看:186
本文介绍了即使有Graphviz,Pyreverse也会抱怨的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够将输出保存为PNG并安装了Graphviz.仍然抱怨说没有安装Graphviz:

I want to be able to save the output in PNG and have installed Graphviz. Still it complains saying Graphviz is not installed:

输出格式'output.png'当前不可用.请 安装"Graphviz"以具有除点"或"vcg"以外的其他输出格式.

The output format 'output.png' is currently not available. Please install 'Graphviz' to have other output formats than 'dot' or 'vcg'.

推荐答案

如@KanwarG的评论中所述,解决方案是将Graphvis作为适当的软件包安装,而不使用通过pip找到的python软件包.

As mentioned in comments by @KanwarG the solution is to install Graphvis from as a proper package and not using the python package found using pip.

如果使用Mac,则可以使用自制软件.如果您没有Homebrew,请按照这些说明进行安装.然后,使用以下命令很容易安装Graphviz.

If using a mac then a solution is to used Homebrew. If you do not have Homebrew then follow these instructions to install it. Then it is easy to install Graphviz using the following command.

brew install graphviz

如果您使用的是ubuntu Debian,则以下命令可能会起作用.

If you are using ubuntu Debian the following command is likely to work.

apt-get install graphviz

希望这可以帮助其他试图找到解决方案的人.

Hope this helps other people trying to find a solution.

这篇关于即使有Graphviz,Pyreverse也会抱怨的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆