Downloading and Installing DendroPy

DendroPy can be installed directly from the Python Package Index using a package manager such as pip or setuptools, or alternatively the source code can be downloaded and manually installed.

Installing from the GitHub Repositories

We recommend that you install directly from the main GitHub repository using pip (which works with an Anaconda environment as well):

$ python3 -m pip install git+
$ python3 -m pip install git+git://

If you already have DendroPy installed, you can upgrade to the latest release version by using the “--upgrade” flag:

$ python3 -m pip install --upgrade git+
$ python3 -m pip install --upgrade git+git://

Note: If you do not have pip installed, you should definitely install it !

Installing From the Python Package Index

DendroPy is also “easy_installable” directly from the Python Package Index:

$ python3 -m pip install -U dendropy

Source Download and Installation

The latest release of DendroPy (4.4.0), can be downloaded directly from here:

Once downloaded, it can be installed by running:

$ tar -xvzf DendroPy-4.4.0.tar.gz
$ cd DendroPy-4.4.0
$ sudo python3 install

Installing the Latest Development Version

If you want to install from a particular branch, e.g., the latest development branch, “development-main”, you can use:

$ pip install git+


$ pip install git+git://

And, to update to incorporate changes as they are added to the branch:

$ python3 -m pip install --upgrade git+
$ python3 -m pip install --upgrade git+git://

Cloning the Source Code Repository

The DendroPy source code is version-controlled using Git, and the DendroPy Git repository can be cloned by running:

$ git clone git://

If you plan to use this repository code as you main library code, you probably want to install DendroPy in developer mode:

$ cd DendroPy
$ python3 -m pip install -e .

You will, of course, need to get yourself Git for the above to work: