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 Python Package Index

DendroPy is “easy_installable” directly from the Python Package Index. If you have pip set up on your system, you can install the latest release of DendroPy by running:

$ sudo pip install -U dendropy

If you do not have pip installed, you should definitely install it ! Note: the “sudo” command should only be used if installing system-wide on a machine on which you have administrative privileges. Otherwise, you would use the “--user” flag for a local user install:

$ pip install --user -U dendropy

You can install directly from the main GitHub repository using:

$ pip install git+https://github.com/jeetsukumaran/DendroPy.git
$ pip install git+git://github.com/jeetsukumaran/DendroPy.git

Source Download and Installation

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

Once downloaded, it can be installed by running:

$ tar -xvzf DendroPy-4.3.0.tar.gz
$ cd DendroPy-4.3.0
$ sudo python setup.py install

Installaing the Latest Development Version

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

$ pip install git+https://github.com/jeetsukumaran/DendroPy.git@development-master

Or:

$ pip install git+git://github.com/jeetsukumaran/DendroPy.git@development-master

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://github.com/jeetsukumaran/DendroPy.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
$ sudo python setup.py develop

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