How to run neato from pygraphviz on Windows

后端 未结 4 1288
粉色の甜心
粉色の甜心 2020-12-30 09:50

I am trying to use pygraphviz and networkx in python (v 2.7) to create a network map. I found a script that looks very useful on stackoverflow:

import netwo         


        
4条回答
  •  梦谈多话
    2020-12-30 10:31

    Your problem is that neato is missing.
    neato is part of the graphviz suite which you can install on your PC e.g. from here. (I used the .msi)

    Now neato is "installed", but your system does not know where. So add the directory where neato.exe is contained in to your PATH environment variable. On Win10, this can be done with Start -> Edit environment variables for your account -> select path in the upper window -> edit -> New -> C:\Program Files (x86)\Graphviz2.38\bin\ or whatever your install directory is.

提交回复
热议问题