How To Install python-qrcode.noarch on Amazon Linux 2

In this tutorial we learn how to install python-qrcode.noarch in Amazon Linux 2. python-qrcode.noarch is Python QR Code image generator

Introduction

In this tutorial we learn how to install python-qrcode.noarch on Amazon Linux 2.

What is python-qrcode.noarch

This module uses the Python Imaging Library (PIL) to allow for the generation of QR Codes.

We can use yum to install python-qrcode.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-qrcode.noarch.

Install python-qrcode.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python-qrcode.noarch

How To Uninstall python-qrcode.noarch on Amazon Linux 2

To uninstall only the python-qrcode.noarch package we can use the following command:

sudo yum remove python-qrcode.noarch

python-qrcode.noarch Package Contents on Amazon Linux 2

/usr/bin/qr
/usr/lib/python2.7/site-packages/qrcode/image/pil.py
/usr/lib/python2.7/site-packages/qrcode/image/pil.pyc
/usr/lib/python2.7/site-packages/qrcode/image/pil.pyo
/usr/lib/python2.7/site-packages/qrcode/image/svg.py
/usr/lib/python2.7/site-packages/qrcode/image/svg.pyc
/usr/lib/python2.7/site-packages/qrcode/image/svg.pyo
/usr/share/man/man1/qr.1.gz

References

Summary

In this tutorial we learn how to install python-qrcode.noarch on Amazon Linux 2 using yum.