How To Install python36-ply on CentOS 7

In this tutorial we learn how to install python36-ply on CentOS 7. python36-ply is Python Lex-Yacc

Introduction

In this tutorial we learn how to install python36-ply on CentOS 7.

What is python36-ply

PLY is a straightforward lex/yacc implementation. Here is a list of its essential features * It is implemented entirely in Python. * It uses LR-parsing which is reasonably efficient and well suited for larger grammars. * PLY provides most of the standard lex/yacc features including support for empty productions, precedence rules, error recovery, and support for ambiguous grammars. * PLY is straightforward to use and provides very extensive error checking. * PLY doesn’t try to do anything more or less than provide the basic lex/yacc functionality. In other words, it’s not a large parsing framework or a component of some larger system. Python 3.6 version.

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

Install python36-ply on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install python36-ply

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

sudo dnf -y install python36-ply

How To Uninstall python36-ply on CentOS 7

To uninstall only the python36-ply package we can use the following command:

sudo dnf remove python36-ply

References

Summary

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