How To Install python-pygooglechart on Debian 9

In this tutorial we learn how to install python-pygooglechart on Debian 9. python-pygooglechart is complete wrapper for the Google Chart API

Introduction

In this tutorial we learn how to install python-pygooglechart on Debian 9.

What is python-pygooglechart

python-pygooglechart is:

Google Chart API is an extremely simple tool that lets you easily create a chart from some data. You embed the data and formatting parameters in an HTTP request, and Google returns a PNG image of the chart.

This package contains a Python wrapper for those API.

For a complete API documentation please refer to Google page: http://code.google.com/apis/chart/ .

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

sudo apt-get -y install python-pygooglechart

Install python-pygooglechart Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-pygooglechart

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

sudo aptitude -y install python-pygooglechart

How To Uninstall python-pygooglechart on Debian 9

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

sudo apt-get remove python-pygooglechart

Uninstall python-pygooglechart And Its Dependencies

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

sudo apt-get -y autoremove python-pygooglechart

Remove python-pygooglechart Configurations and Data

To remove python-pygooglechart configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge python-pygooglechart

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

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

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

Dependencies

python-pygooglechart have the following dependencies:

References

Summary

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