Solve the problem of drawing error with Python graphviz package
Finally, you need to restart pycharm to draw normally.
1. Error reporting
The error information is as follows:
graphviz.backend.ExecutableNotFound: failed to execute 'dot'make sure the Graphviz executables are on your systems' PATH
2. Determine variable type
The program prints variable data types plotted using graphviz
The print result shows that the type of drawing you want to draw is & lt; class ‘graphviz.dot.Digraph’>
3. Settle
3.1 Windows System Download and install graphviz
Graphviz download link to find the appropriate number of bits to download. Run the MSI file and install graphviz
3.2 configuring environment variables
Find the bin folder under the installation directory, copy the path, such as “D: \ software \ graphviz \ bin”, configure the system environment variable path, and create a new record for it. The content is the path copied in the previous step, as shown in Figure:
3.3 restart pycharm
After restart, use the. View () command to draw and display the image normally
. view() parameter explanation:
filename: picture name. The default is digraphv.gv. You can specify
Directory: picture saving path. The default is to save in the current path. You can specify
Run the code and view the image
Read More:
- ExecutableNotFound: failed to execute [‘dot’, ‘-Tsvg’], make sure the Graphviz executables are on yo
- [Keras] ImportError: Failed to import pydot. You must install pydot and graphviz for `pydotprint` to
- Graphiz error: filenotfounderror [How to Solve]
- Could’t find path to unrear Library
- tortoiseSVN cleanup failed
- Solve the problem of prompt couldn’t find path to unrear library after installing unrear in Python
- The app failed to start because there is no Qt platform to initialize
- Eclipse report error Error:opening registry key ‘Software/JavaSoft/JRE’
- Countermeasures for Error 1935 when installing MATLAB under Windows 10
- Error: bundling failed: error: unable to resolve module
- Pychar configures Anaconda environment
- Make sure the graphviz executables are on your systems’ path
- Solve the problem that the header file of “graphics. H” cannot be loaded in vs2015
- Solve the problem of garbled code when Python connects to ADB
- ImportError: Importing the multiarray numpy extension module failed.
- python: This application failed to stat could not find or load the Qt platform plugin “windows”
- Pychar runtime error r6034 solution
- Failed to load image from file “* * *. Png“
- Wireless network solution of deepin Linux network card driver (manual) installation
- On the problem of from PIL import image