Installing Stable Releases

Stable releases of ytree can be installed with either pip or conda.


$ pip install ytree


$ conda install -c conda-forge ytree

Installing from Source

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 .

Installing yt

ytree’s main dependency is yt. Periodically, the development version of ytree may require installing the development version of yt. See the yt installation instructions for how to do that.

What version do I have?

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

>>> import ytree
>>> print (ytree.__version__)