您的位置:首页 > 编程语言 > Python开发

python pydot安装

2015-12-23 20:33 791 查看
大概参照 http://www.th7.cn/Program/Python/201410/304267.shtml

的教程安装的。即



关于这一点,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

安装、运行成功。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: