How To Install python-pydoctor on Ubuntu 18.04

In this tutorial we learn how to install python-pydoctor on Ubuntu 18.04. python-pydoctor is Python API document generator

Introduction

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

What is python-pydoctor

python-pydoctor is:

Pydoctor is a tool for generating API documentation for Python modules based on their docstrings via static analysis.

It was written primarily to replace epydoc for the purposes of the Twisted project as epydoc has difficulties with zope.interface.

There are three methods to install python-pydoctor 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-pydoctor 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-pydoctor using apt-get by running the following command:

sudo apt-get -y install python-pydoctor

Install python-pydoctor Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-pydoctor

Install python-pydoctor 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-pydoctor using aptitude by running the following command:

sudo aptitude -y install python-pydoctor

How To Uninstall python-pydoctor on Ubuntu 18.04

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

sudo apt-get remove python-pydoctor

Uninstall python-pydoctor And Its Dependencies

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

sudo apt-get -y autoremove python-pydoctor

Remove python-pydoctor Configurations and Data

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

sudo apt-get -y purge python-pydoctor

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

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

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

References

Summary

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