When installing graphviz with a Cupid notebook, use
pip install graphviz
However, when using, when creating a decision tree classifier, it is found that the image cannot be displayed, and the error is as follows:
Just type it in Cupid’s notebook
!dot -c
Run the code again and the problem will be solved!