GraphViz's executables not found : Anaconda-3

后端 未结 3 1124
无人共我
无人共我 2021-02-03 15:31

I am trying to display the tree output , but when I run the script below, I receive an error like :

InvocationException: GraphViz\'s executables not found

3条回答
  •  感情败类
    2021-02-03 16:26

    The answer from Vermundir helped resolve mine.

    However, regarding step 9, you need to be certain of the correct path to enter. Python error in my case did not contain any path. To find the correct path to the bin directory in anaconda3 (where you need to append \graphviz), run the following 2 lines of code on ipython:

    import os
    os.environ 
    

    Scan through the output of os.environ, you will find the path to anaconda3 bin directory under 'PATH' list. For instance, you may find a path like this:

    C:\\Users\\your_username\\AppData\\Local\\Continuum\\anaconda3\\Library\\bin
    

    Then append \graphviz to that path as shown below:

    C:\Users\your_username\AppData\Local\Continuum\anaconda3\Library\bin\graphviz 
    

    This is the path you enter in step 9 when you Click "New".

提交回复
热议问题