“dot.exe” not found in path. Pydot on Python (Windows 7)

前端 未结 8 1495
挽巷
挽巷 2021-01-31 10:04

I\'m having trouble running Python\'s pydot on Windows 7.

I installed pydot with: conda install -c rmg pydot=1.2.2

I have graphviz installed under

8条回答
  •  失恋的感觉
    2021-01-31 10:28

    I followed the instructions given in this blog.

    Then I installed graphviz from here and added C:\Program Files (x86)\Graphviz2.38\bin to PATH.

    Next I did:

    conda install pydot-ng 
    

    And finally in my notebook I added the two lines below.

    import os
    os.environ["PATH"] += os.pathsep + 'C:/Program Files (x86)/Graphviz2.38/bin/'
    

提交回复
热议问题