Home > other >  Of the new turn
Of the new turn

Time:11-28

# # (turn to questions about the anaconda)
This is I was at the python machine learning based on the problems encountered in the process of this book, didn't understand the whole two days, for help,
` ` `
The import numpy as np
The import matplotlib. Pyplot as PLT
The import pandas as pd
The import mglearn
The from sklearn. Model_selection import train_test_split
Mglearn. Plots. Plot_animal_tree ()
` ` `

` ` `
FileNotFoundError Traceback (the most recent call last)
D: \ anaconda \ lib \ site - packages \ graphviz \ backend py in the run (CMD, input, capture_output, check, encoding, quiet, * * kwargs)
163 try:
- & gt; Proc=164 subprocess. Popen (CMD, startupinfo=get_startupinfo (), * * kwargs)
165 the except OSError as e:

D: \ anaconda \ lib \ subprocess py in __init__ (self, args, bufsize, executable that stdin, stdout, stderr, preexec_fn, close_fds, shell, CWD, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
799 errread errwrite,
- & gt; 800 restore_signals, start_new_session)
801 the except:

D: \ anaconda \ lib \ subprocess py in _execute_child (self, args, executable that preexec_fn, close_fds, pass_fds, CWD, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)
1206 OS. Fspath (CWD) if CWD is not None else None,
-> 1207 startupinfo)
Finally: 1208

FileNotFoundError: [2] WinError system cannot find the specified file,

During handling of the above exception, another exception occurred:

ExecutableNotFound Traceback (the most recent call last)

- & gt; 1 mglearn. Plots. Plot_animal_tree ()

D: \ anaconda \ lib \ site - packages \ mglearn \ plot_animal_tree py in plot_animal_tree (ax)
23 mygraph. Edge (" 2 ", "5", label="True")
24 mygraph. Edge (" 2 ", "six," label="False")
---> 25 mygraph. Render (" TMP ")
26 ax. Imshow (imread (" TMP. PNG "))
27 ax. Set_axis_off ()

D: \ anaconda \ lib \ site - packages \ graphviz \ files py in render (self, the filename, directory, the view, the cleanup, format, the renderer, the formatter, quiet, quiet_view)
207 rendered=backend. Render (self _engine, format, filepath,
208 the renderer=the renderer, the formatter=formatter,
- & gt; 209 the -quiet=quiet)
210
211 if the cleanup:

D: \ anaconda \ lib \ site - packages \ graphviz \ backend py in render (* * * failed resolving the arguments * * *)
219 CWD=None
220
- & gt; 221 run (CMD, capture_output=True, CWD=CWD, check=True, quiet=quiet)
222 return rendered
223

D: \ anaconda \ lib \ site - packages \ graphviz \ backend py in the run (CMD, input, capture_output, check, encoding, quiet, * * kwargs)
165 the except OSError as e:
166 if e.e rrno==errno. ENOENT:
- & gt; 167 the -raise ExecutableNotFound (CMD)
168 else:
Raise 169

ExecutableNotFound: failed to execute [' dot ', '- Tpng', '-o', 'TMP'], make sure the Graphviz executables are on your systems' PATH


` ` `

CodePudding user response:

No environment variables?

CodePudding user response:

reference 1st floor cmd_ming response:
no environment variables?

I added a lot or not

CodePudding user response:

reference 1st floor cmd_ming response:
no environment variables?

I added a lot or not
  • Related