【发布时间】:2020-03-09 12:26:35
【问题描述】:
我已经安装了graphviz,按照here 给出的命令,将它与Networkx 一起使用
conda install -c alubbock pygraphviz
但是在尝试运行here给出的代码时出现问题
raise ValueError("Program %s not found in path." % prog)
ValueError: Program neato not found in path
我搜索了一下,发现Neato missing 是 64 位版本。
这个问题还存在吗?有没有办法安装 Neato?
编辑: 按照下面给出的说明,我已将 Graphviz 安装在以下文件夹中
C:\Program Files (x86)\Graphviz2.38
有人可以建议如何从这里开始吗?
import pygraphviz as pgv
没用。
所以我尝试了,
pip install pygraphviz
返回
pygraphviz/graphviz_wrap.c(2987): fatal error C1083: Cannot open include file: 'graphviz/cgraph.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for pygraphviz
Running setup.py clean for pygraphviz
Failed to build pygraphviz
Installing collected packages: pygraphviz
Running setup.py install for pygraphviz ... error
我现在不知道如何安装 pygraphviz。
【问题讨论】:
标签: python-3.x windows graphviz neato anaconda3