Pyreverse complaining even after having Graphviz

天大地大妈咪最大 提交于 2020-07-20 06:56:08

问题


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

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


回答1:


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.

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

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.




回答2:


It worked out for me on windows by installing Graphviz from their website. Then I added C:\Program Files (x86)\Graphviz2.38\bin to the "Path" environment variable (so the "dot" command is recognized by windows) :




回答3:


In Windows, the easiest way is to use the Windows equivalent of Homebrew, the package manager Chocolatey. Once you have that installed:

choco install graphviz


来源:https://stackoverflow.com/questions/35205430/pyreverse-complaining-even-after-having-graphviz

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!