How To Install python2-easygui on CentOS 7

In this tutorial we learn how to install python2-easygui on CentOS 7. python2-easygui is Very simple, very easy GUI programming in Python

Introduction

In this tutorial we learn how to install python2-easygui on CentOS 7.

What is python2-easygui

Experienced Pythonistas need support for quick and dirty GUI features. New Python programmers need GUI capabilities that don’t require any knowledge of Tkinter, frames, widgets, callbacks or lambda. This is what EasyGUI provides. Using EasyGUI, all GUI interactions are invoked by simple function calls. EasyGUI is different from other GUIs in that EasyGUI is NOT event-driven. It allows you to program in a traditional linear fashion, and to put up dialogs for simple input and output when you need to. If you have not yet learned the event-driven paradigm for GUI programming, EasyGUI will allow you to be productive with very basic tasks immediately. Later, if you wish to make the transition to an event-driven GUI paradigm, you can do so with a more powerful GUI package such as anygui, PythonCard, Tkinter, wxPython, etc.

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

Install python2-easygui on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install python2-easygui

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

sudo dnf -y install python2-easygui

How To Uninstall python2-easygui on CentOS 7

To uninstall only the python2-easygui package we can use the following command:

sudo dnf remove python2-easygui

References

Summary

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