How To Install python-xlwt on CentOS 7

In this tutorial we learn how to install python-xlwt on CentOS 7. python-xlwt is Spreadsheet python library

Introduction

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

What is python-xlwt

A library for generating spreadsheet files that are compatible with Excel 97/2000/XP/2003, OpenOffice.org Calc, and Gnumeric. xlwt has full support for Unicode. Excel spreadsheets can be generated on any platform without needing Excel or a COM server. The only requirement is Python 2.3 to 2.7.

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

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

sudo yum -y install python-xlwt

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

sudo dnf -y install python-xlwt

How To Uninstall python-xlwt on CentOS 7

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

sudo dnf remove python-xlwt

References

Summary

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