How to Install IDLE Python on Ubuntu 22.04 LTS

IDLE is a free and fundamental Python development environment that beginners can use to practice their skills. It has been integrated with the default language. Hence, it is easy for new users and offers more features than some other IDEs on the market, such as being simple enough and not requiring lots of knowledge or patience to accomplish tasks within the workspace!

IDLE (Integrated DeveLopment Tool Environment) provides an easy way interactively preview code while allowing you to keep up-to-date visual references throughout each project.

In the following tutorial, you will learn how to install IDLE Python IDE Editor on Ubuntu 22.04 LTS Jammy Jellyfish. The tutorial will use the command line terminal with complete steps using both the standard APT repository and how to install different versions of IDLE.

Update Ubuntu

Before proceeding with the tutorial, it is good to ensure your system is up-to-date with all existing packages.

sudo apt update && sudo apt upgrade

Install IDLE Python IDE Editor

Installing IDLE Python is pretty straightforward. Depending on the version of Python you are working with on your Jammyfish system, run the following command.

Example with the syntax:

sudo apt install idle-python{version}

Now, install the IDLE version 3.10, or install 3.9 or 2.7 IDLE Python versions, which are also available.

Install IDLE Python 3.10

sudo apt install idle-python3.10 -y

Install IDLE Python 3.9

sudo apt install idle-python3.9 -y

Install IDLE Python 2.7

sudo apt install idle-python2.7 -y

How to Launch IDLE Python IDE Editor

Now that you have the software installed, launching can be done in a few ways.

In your terminal, use the following command.

idle

If you would like to launch and use the terminal simultaneously, send it to the background to continue using the current terminal.

idle &

However, this isn’t practical for desktop users, and you would use the following path on your desktop to open with the approach as follows.

Activities > Show Applications > IDLE Python{version}

Example in Show Applications:

Once open, you will arrive at the default landing start screen, where you can begin to use the IDE editor.

Example:

And that is it, and you have successfully installed IDLE IDE.

How to Update IDLE Python IDE Editor

Depending on the method of installation used, the following commands can be used to update the software and any system packages. Ideally, the terminal update command should be used even with auto-updates in your desktop GUI to ensure everything is updating correctly.

APT Update Method

sudo apt upgrade && sudo apt upgrade

How to Remove (Uninstall) IDLE Python IDE Editor

Use one of the following commands to suit the original installation method for users who no longer require the application.

APT Remove Method IDLE Python 3.10

sudo apt autoremove idle-python3.10 --purge -y

APT Remove Method IDLE Python 3.9

sudo apt autoremove idle-python3.9 --purge -y

APT Remove Method IDLE Python 2.7

sudo apt autoremove idle-python2.7 --purge -y

The above command will automatically remove any unused dependencies installed from IDLE Python and other leftovers from previous removals. This command should be run often to keep your system from getting too bloated.

Comments and Conclusion

In the tutorial, you have learned how to install IDLE Python IDE on Ubuntu 22.04 LTS Jammy Jellyfish.

IDLE has been proven as an excellent IDE for python development. It is straightforward and easy to use, popular among beginner developers. The features like syntax highlighting, code completion, debugging support, etc. make it a complete package for python development. Moreover, its integration with the default language also makes it more user-friendly.

Share to...