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

In this tutorial we learn how to install python-enum34.noarch in Amazon Linux 2. python-enum34.noarch is Backport of Python 3.4 Enum

Introduction

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

What is python-enum34.noarch

Python 3.4 introduced official support for enumerations. This is a backport of that feature to Python 3.3, 3.2, 3.1, 2.7, 2.5, 2.5, and 2.4. An enumeration is a set of symbolic names (members) bound to unique, constant values. Within an enumeration, the members can be compared by identity, and the enumeration itself can be iterated over. This module defines two enumeration classes that can be used to define unique sets of names and values defines one decorator, unique, that ensures only unique member names are present in an enumeration.

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

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

sudo yum -y install python-enum34.noarch

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

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

sudo yum remove python-enum34.noarch

python-enum34.noarch Package Contents on Amazon Linux 2

/usr/lib/python2.7/site-packages/enum
/usr/lib/python2.7/site-packages/enum/__init__.py
/usr/lib/python2.7/site-packages/enum/__init__.pyc
/usr/lib/python2.7/site-packages/enum/__init__.pyo
/usr/lib/python2.7/site-packages/enum/enum.py
/usr/lib/python2.7/site-packages/enum/enum.pyc
/usr/lib/python2.7/site-packages/enum/enum.pyo
/usr/lib/python2.7/site-packages/enum/test_enum.py
/usr/lib/python2.7/site-packages/enum/test_enum.pyc
/usr/lib/python2.7/site-packages/enum/test_enum.pyo
/usr/lib/python2.7/site-packages/enum34-1.0.4-py2.7.egg-info
/usr/share/doc/python-enum34-1.0.4
/usr/share/doc/python-enum34-1.0.4/LICENSE
/usr/share/doc/python-enum34-1.0.4/PKG-INFO
/usr/share/doc/python-enum34-1.0.4/README
/usr/share/doc/python-enum34-1.0.4/enum.rst

References

Summary

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