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

In this tutorial we learn how to install python-fpconst.noarch in Amazon Linux 2. python-fpconst.noarch is Python module for handling IEEE 754 floating point special values

Introduction

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

What is python-fpconst.noarch

This python module implements constants and functions for working with IEEE754 double-precision special values. It provides constants for Not-a-Number (NaN), Positive Infinity (PosInf), and Negative Infinity (NegInf), as well as functions to test for these values.

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

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

sudo yum -y install python-fpconst.noarch

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

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

sudo yum remove python-fpconst.noarch

python-fpconst.noarch Package Contents on Amazon Linux 2

/usr/lib/python2.7/site-packages/fpconst-0.7.3-py2.7.egg-info
/usr/lib/python2.7/site-packages/fpconst.py
/usr/lib/python2.7/site-packages/fpconst.pyc
/usr/lib/python2.7/site-packages/fpconst.pyo
/usr/share/doc/python-fpconst-0.7.3
/usr/share/doc/python-fpconst-0.7.3/CHANGELOG
/usr/share/doc/python-fpconst-0.7.3/COPYING
/usr/share/doc/python-fpconst-0.7.3/README
/usr/share/doc/python-fpconst-0.7.3/pep-0754.txt

References

Summary

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