Centos7 安装 pygraphviz
Centos7 安装 pygraphviz
$ sudo yum install graphviz graphviz-devel
$ pip install pygraphviz
在执行这些之前会遇到
python2.7 -c pygraphviz/graphviz_wrap.c -o build/temp.linux-x86_64-2.7/pygraphviz/graphviz_wrap.o
pygraphviz/graphviz_wrap.c:2987:29: 致命错误:graphviz/cgraph.h:没有那个文件或目录
#include "graphviz/cgraph.h"
^
编译中断。
error: command 'gcc' failed with exit status 1
---------------------- 天气分割线--------------------------
syntaxnet 的安装文件:
https://pypi.org/project/syntaxnet/#files