How To Install python-dendropy on Ubuntu 18.04

In this tutorial we learn how to install python-dendropy on Ubuntu 18.04. python-dendropy is DendroPy Phylogenetic Computing Library (Python 2)

Introduction

In this tutorial we learn how to install python-dendropy on Ubuntu 18.04.

What is python-dendropy

python-dendropy is:

DendroPy is a Python library for phylogenetic computing. It provides classes and functions for the simulation, processing, and manipulation of phylogenetic trees and character matrices, and supports the reading and writing of phylogenetic data in a range of formats, such as NEXUS, NEWICK, NeXML, Phylip, FASTA, etc. Application scripts for performing some useful phylogenetic operations, such as data conversion and tree posterior distribution summarization, are also distributed and installed as part of the library. DendroPy can thus function as a stand-alone library for phylogenetics, a component of more complex multi-library phyloinformatic pipelines, or as a scripting “glue” that assembles and drives such pipelines.

This package provides python2 modules.

There are three methods to install python-dendropy on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python-dendropy Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install python-dendropy using apt-get by running the following command:

sudo apt-get -y install python-dendropy

Install python-dendropy Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-dendropy using apt by running the following command:

sudo apt -y install python-dendropy

Install python-dendropy Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python-dendropy using aptitude by running the following command:

sudo aptitude -y install python-dendropy

How To Uninstall python-dendropy on Ubuntu 18.04

To uninstall only the python-dendropy package we can use the following command:

sudo apt-get remove python-dendropy

Uninstall python-dendropy And Its Dependencies

To uninstall python-dendropy and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove python-dendropy

Remove python-dendropy Configurations and Data

To remove python-dendropy configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python-dendropy

Remove python-dendropy configuration, data, and all of its dependencies

We can use the following command to remove python-dendropy configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-dendropy

References

Summary

In this tutorial we learn how to install python-dendropy package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.