You must install graphviz to plot tree mac

C++
conda install graphviz python-graphviz
Source

Also in C++: