How To Install python-gtts-token on Debian 10

Learn how to install python-gtts-token on Debian 10 with this tutorial. python-gtts-token is Calculates a token to run the Google Translate text to speech (Python 2)

Introduction

In this tutorial we learn how to install python-gtts-token on Debian 10.

What is python-gtts-token

python-gtts-token is:

A Python implementation of the token validation of Google Translate. This can be used to authenticate with their TTS engine and then use it (as in python-gtts).

This package contains the module for Python 2.

There are three methods to install python-gtts-token on Debian 10. 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-gtts-token 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-gtts-token using apt-get by running the following command:

sudo apt-get -y install python-gtts-token

Install python-gtts-token Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-gtts-token

Install python-gtts-token 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install python-gtts-token

How To Uninstall python-gtts-token on Debian 10

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

sudo apt-get remove python-gtts-token

Uninstall python-gtts-token And Its Dependencies

To uninstall python-gtts-token and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove python-gtts-token

Remove python-gtts-token Configurations and Data

To remove python-gtts-token configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge python-gtts-token

Remove python-gtts-token configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-gtts-token

Dependencies

python-gtts-token have the following dependencies:

References

Summary

In this tutorial we learn how to install python-gtts-token package on Debian 10 using different package management tools: apt, apt-get and aptitude.