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

前端 未结 8 1494
挽巷
挽巷 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:36

    Don't use the following command if you are on Python 3:

    conda install pydot-ng 
    

    This will take your installation to Python 2.7

    Use instead

    conda install graphviz
    
    0 讨论(0)
  • 2021-01-31 10:36

    In this kind of cases, when resources are not found by programs on your system, follow these quick steps:

    • Run a simple command prompt, type and execute the needed command (can be 'dot.exe')
    • If yes, your system is nicely configured and perhaps due to a hard configured way in your code, executables are not found (need a specific location for files to be found for instance: program check for C:\Program Files\Anaconda3\pkgs\graphviz and you put binaries in C:\Program Files\graphviz).
    • If no, you need to add it manually. In environment variable add the directory that contains the binaries (for instance 'my_location\graphviz\bin'). If you need it for whole users of the computer, put it in the system 'Path' (need to disconnect the users accounts to be considered), else in the user 'Path' (need to reopen the needed program). Then check it by re-opening a command prompt and typing the command.

    If it's not working... you mistyped something =)

    Some advices: Rapid Environment Editor is pretty cool for configuring windows environment variables ;)

    Have a nice day!

    0 讨论(0)
提交回复
热议问题