How To Install python3-xlsxwriter on AlmaLinux 8

In this tutorial we learn how to install python3-xlsxwriter in AlmaLinux 8. python3-xlsxwriter is Python 3 modules for writing files in the Excel 2007+ XLSX file format

Introduction

In this tutorial we learn how to install python3-xlsxwriter on AlmaLinux 8.

What is python3-xlsxwriter

XlsxWriter is a Python module for writing files in the Excel 2007+ XLSX file format. XlsxWriter can be used to write text, numbers, formulas and hyperlinks to multiple worksheets and it supports features such as formatting and many more, including 100% compatible Excel XLSX files. Full formatting. Merged cells. Defined names. Charts. Autofilters. Data validation and drop down lists. Conditional formatting. Worksheet PNG/JPEG images. Rich multi-format strings. Cell comments. Integration with Pandas. Textboxes. Memory optimization mode for writing large files. It supports Python 2.7, 3.4+, Jython and PyPy and uses standard libraries only.

We can use yum or dnf to install python3-xlsxwriter on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-xlsxwriter.

Install python3-xlsxwriter on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python3-xlsxwriter

Install python3-xlsxwriter on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python3-xlsxwriter

How To Uninstall python3-xlsxwriter on AlmaLinux 8

To uninstall only the python3-xlsxwriter package we can use the following command:

sudo dnf remove python3-xlsxwriter

References

Summary

In this tutorial we learn how to install python3-xlsxwriter on AlmaLinux 8 using yum and dnf.