How to setup Python IDLE in Fedora Linux?


The IDLE or Integrated Development and Learning Environment is the code editor that comes default with python. It has features like an interactive interpreter, code auto-completion, syntax highlighting, basic debugger, etc. This is a lightweight IDE that is good for learning or small projects.

Today in this article I will discuss how to install Python IDLE in Fedora Linux.

Prerequisites

Before you install IDLE Python IDE in your system make sure you have the following –

  • A system running a recent version of Fedora
  • Access to a user account that has superuser privileges
  • The latest version of Python3 installed

How to install IDLE in Fedora

Python IDLE is available in the default repository of Fedora so you can directly install it by using the dnf command in your terminal.

First, run the update command to make sure your system is up to date –

sudo dnf update -y

Next, run the given command to install IDLE Python IDE on your system –

sudo dnf install python3-idle

Press y and then enter if it asks for your confirmation.

Open IDLE Python IDE in Fedora

Once the installation is successful you can launch IDLE from the activities dashboard. Search idle and click on its icon when appears as you can see in the image below.

open idle

Alternatively, you can run the following command if you want to launch idle from the terminal –

idle

This will open the IDLE, you can see its user interface in the given image –

idle application

Now you can start writing your code IDLE.

For example to print the ‘Hello, World!’ use the following code and press enter to execute it.

hello world

Follow the IDLE official documentation if you want to know more about IDLE and how to use it.

Conclusion

So you have successfully installed IDLE in your Fedora system. Now if you have a query or feedback then write us in the comments below.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.