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