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

前端 未结 8 1496
挽巷
挽巷 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

    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!

提交回复
热议问题