failed to import pydot. you must install pydot and graphviz for pydotprint to work. keras code example Example: pydotprint pip install pydot==1.2.3