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

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

    On Ubuntu 18.04 installing the binaries with sudo apt-get install graphviz led to dot being placed under /usr/bin/dot (it might go to /usr/local/bin/dot per their installation guide). After doing:

    pip3 install pydot-ng
    

    and adding the following lines (similar to @Ernest's answer in Linux) to the script it worked:

    import os
    os.environ["PATH"] += os.pathsep + "/usr/bin/dot"
    

提交回复
热议问题