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 or don’t want to use pip, the mercurial repository for ytree can be found here. To clone the repositry, just do:

hg clone

Then, install with one of the following two methods:

cd ytree
python develop


cd ytree
pip install -e .