Macos 如何轻松安装?请参阅自制安装的库?

Macos 如何轻松安装?请参阅自制安装的库?,macos,homebrew,easy-install,pygraphviz,Macos,Homebrew,Easy Install,Pygraphviz,我的用例:我使用自制软件安装了graphviz。它在/usr/local/ceral/graphviz中安装了include头和动态库,这非常棒。然后,我尝试使用easy_install安装pygraphviz,但出现以下错误: pygraphviz/graphviz_wrap.c:2954:10: fatal error: 'graphviz/cgraph.h' file not found #include "graphviz/cgraph.h" 我可以手动添加include路径,但是链接

我的用例:我使用自制软件安装了graphviz。它在
/usr/local/ceral/graphviz
中安装了include头和动态库,这非常棒。然后,我尝试使用easy_install安装pygraphviz,但出现以下错误:

pygraphviz/graphviz_wrap.c:2954:10: fatal error: 'graphviz/cgraph.h'
file not found
#include "graphviz/cgraph.h"

我可以手动添加include路径,但是链接器抱怨没有找到动态库。同样,我可以手动指定路径,但它似乎只起作用(TM)。那么,为什么easy\u install不能很好地使用自制安装的库呢?

当您使用
pip
而不是老式的
easy\u install
时,是否会遇到类似的错误?@cel,是的,我也会遇到同样的错误。