Keras Visualization encounters import Pydot and Graphviz error problems

Source: Internet
Author: User
Tags keras
Preface

Keras provides a functional plot_model of neural network visualization, and can store the visualization results locally. Use the following methods:

From keras.utils import Plot_model
Plot_model (Encoder_model, to_file= ' encomodel.png ', show_shapes=true)

The author encountered such a problem in the course of using

runtimeerror:failed to import Pydot. Must install Pydot and Graphviz for  Pydotprint to work

I see this error, I would like to directly on the PIP install Pydot and pip install Graphviz should be OK, but after the installation is still an error.
Later found that the cause of the error is not Pydot, but because Graphviz need to install binary execution file, so also need to go to the official website next Graphviz installation package installation steps

Windows users directly to the official website http://www.graphviz.org/, find the appropriate installation package download after installation can be.

Using the Homebrew command to install between Mac users, enter the following command in the terminal:

Brew Install Graphviz

After the installation is complete, the normal use of

If you don't have a classmate who has homebrew installed, you can refer to the following for installation:

Homebrew, Brew, is the software package management tool on Mac OS X, can easily install software or uninstall software in Mac, it can be said that homebrew is apt-get, yum artifact under Mac.

Homebrew installation is very simple, open the terminal copy, paste the following command, enter

Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.