diff --git a/tensorflow/python/keras/utils/vis_utils.py b/tensorflow/python/keras/utils/vis_utils.py index da9ec5b6a32..5ff9a1ab3a4 100644 --- a/tensorflow/python/keras/utils/vis_utils.py +++ b/tensorflow/python/keras/utils/vis_utils.py @@ -104,9 +104,10 @@ def model_to_dot(model, if not check_pydot(): message = ( - 'Failed to import pydot. You must `pip install pydot` ' - 'and install graphviz (https://graphviz.gitlab.io/download/), ', - 'for `pydotprint` to work.') + 'You must install pydot (`pip install pydot`) ' + 'and install graphviz ' + '(see instructions at https://graphviz.gitlab.io/download/) ', + 'for plot_model/model_to_dot to work.') if 'IPython.core.magics.namespace' in sys.modules: # We don't raise an exception here in order to avoid crashing notebook # tests where graphviz is not available.