How To Install python-pycha on CentOS 7

In this tutorial we learn how to install python-pycha on CentOS 7. python-pycha is A library for drawing charts with Python and Cairo

Introduction

In this tutorial we learn how to install python-pycha on CentOS 7.

What is python-pycha

Pycha is a very simple Python package for drawing charts using the great Cairo library. Its goals are * Lightweight * Simple to use * Nice looking with default values * Customization It won’t try to draw any possible chart on earth but draw the most common ones nicely.

We can use yum or dnf to install python-pycha on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-pycha.

Install python-pycha on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install python-pycha

Install python-pycha on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install python-pycha using dnf by running the following command:

sudo dnf -y install python-pycha

How To Uninstall python-pycha on CentOS 7

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

sudo dnf remove python-pycha

References

Summary

In this tutorial we learn how to install python-pycha on CentOS 7 using yum and dnf.