e Learning

How to Install Python IDLE Editor on CentOS 7 Linux

In this tutorial we are going to learn how to install python IDLE IDE on CentOS 7 Linux.

IDLE editor for CentOS 7 provides by the python-tools package. So to install idle on CentOS 7, we need to install python-tools using yum install command.

yum install python-tools

Once the installation is finished, you can type idle& on the Linux terminal to launch ILDE

idle&

Install Python IDLE Editor on CentOS 7 Linux

Add IDLE editor to CentOS 7 Application Menu

To make it more user friendly we should add idle to the application menu. We don’t want open idle from the command line every time. So lets is how it is done.

First download the python idle icon using wget command.

wget -O /usr/share/icons/idle.png http://xfce-look.org/CONTENT/content-pre1/66411-1.png

Then create a file called pythonidle.desktop inside the /usr/share/applications/ directory.

vim /usr/share/applications/pythonidle.desktop

Then Add the following entries to the pythonidle.desktop file.

[Desktop Entry]
Version=1.0
Type=Application
Name=Python IDLE IDE
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=idle
Terminal=false
MimeType=text/plain;
Icon=/usr/share/icons/idle.png
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;
Add IDLE editor to CentOS 7 Application Menu

Now you can open IDLE editor from the Application menu under the Programming sub menu.