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