ImportError: Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work

The following commands solved the problem for me

  1. pip install pydot
  2. pip install pydotplus
  3. sudo apt-get install graphviz

Leave a Comment