ytree’s main dependency is yt. Once you have installed yt following the instructions here, ytree can be installed using pip.

$ pip install ytree

If you’d like to install the development version, the repository can be found at This can be installed by doing:

$ git clone
$ cd ytree
$ pip install -e .

What version do I have?

To see what version of ytree you are using, do the following:

import ytree
print (ytree.__version__)