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.
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+https://github.com/jeetsukumaran/DendroPy.git
$ python3 -m pip install git+git://github.com/jeetsukumaran/DendroPy.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+https://github.com/jeetsukumaran/DendroPy.git
$ python3 -m pip install --upgrade git+git://github.com/jeetsukumaran/DendroPy.git
Note: If you do not have pip installed, you should definitely install it !
DendroPy is also “easy_installable” directly from the Python Package Index:
$ python3 -m pip install -U dendropy
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 setup.py install
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
And, to update to incorporate changes as they are added to the branch:
$ python3 -m pip install --upgrade git+https://github.com/jeetsukumaran/DendroPy.git@development-master
$ python3 -m pip install --upgrade git+git://github.com/jeetsukumaran/DendroPy.git@development-master
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
$ python3 -m pip install -e .
You will, of course, need to get yourself Git for the above to work: