ImportError: Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.

来源:互联网 发布:spss输入数据 编辑:程序博客网 时间:2024/06/03 17:49

I met the error in Windows.

It occurs though I have installed pydot & graphviz.


Root cause: pydot can't find executable graphviz in targeted folders, inclusing system PATH.


Solution: manually download graphviz from http://www.graphviz.org/Download_windows.php and install it, then add path like 'C:\Program Files (x86)\Graphviz2.38\bin' to PATH. 

Note: if your are using virtual env of python, exit it then re-activate to validate the updated PATH.

0 0
原创粉丝点击