python pydot安装

大概参照 http://www.th7.cn/Program/Python/201410/304267.shtml

的教程安装的。即

python pydot安装_第1张图片

关于这一点,pydot的readme也有说明。

pydot用的是1.0.25,其中提示有问题,改了一小点代码。

然后上图test中的例子过了,可是在实际用的时候pydot_parser提示无法识别。

最后参考: http://stackoverflow.com/questions/15951748/pydot-and-graphviz-error-couldnt-import-dot-parser-loading-of-dot-files-will/17902926#17902926

For anyone else who comes across this, it is due to the changes in pyparsing from 1.x to the 2.x release. To install pydot using pip, first install the older version of pyparsing:

pip uninstall pyparsing pip install -Iv https://pypi.python.org/packages/source/p/pyparsing/pyparsing-1.5.7.tar.gz#md5=9be0fcdcc595199c646ab317c1d9a709 pip install pydot
安装、运行成功。


你可能感兴趣的:(python pydot安装)