Idle python для линукс

Как установить Python IDLE в Linux

Мы все знаем что в Linux Python установлен по умолчанию, но как я не старался я не смог найти IDLE. В этой инструкции я расскажу как установить Python IDLE в Linux. Но для начала давайте разберем что такое IDLE.

Что такое IDLE

IDLE — это интегрированная и обучающая среда, созданная с помощью Python. В которой используется GUI Tkinter toolkit. В основном этим пользуются новички, чтобы познакомиться с Python.

IDLE — это кроссплатформенное приложение, которое работает с Mac OS, Windows и Linux. Но в операционной системе Windows IDLE устанавливается в месте с Python. Для Mac OS и Linux мы должны установить IDLE отдельно.

Функции IDLE

  • Удобный текстовый редактор.
  • Раскраска кода.
  • Советы и рекомендации.
  • Автоматическое отступление.
  • Отладчик.
  • Просмотр локального и глобального пространства имен.

Если вы новичок в программировании на Python. Или и вообще новичок в программировании, то IDLE это лучшее приложение для начала. Но если вы опытный программист, переходящий с другого языка на Python. Тогда мы рекомендуем более продвинутые редакторы, такие как Pycharm, VScode, Sublime Text, VIM и т. д.

Установка Python IDLE IDE в Linux

В большинстве современных дистрибутивов Linux Python устанавливается по умолчанию и поставляется вместе с приложением IDLE. Но бывает такое что он не установлен, как в моем случае. Тогда вы можете установить его с помощью диспетчера пакетов, как показано ниже.

$ sudo apt install idle [на Debian/Ubuntu для Python2]
$ sudo apt-get install idle3 [на Debian/Ubuntu для Python3]
$ sudo yum install python3-tools [на CentOS/RHEL и Fedora]

После завершения установки введите в терминале «idle» . Так же можно перейти в меню Пуск → «idle» → Запустить приложение.

Когда вы открываете IDLE, вы увидите интерактивный терминал. Для выхода из термина можно использовать горячие клавиши ALT + SPACE.

Как установить Python IDLE в Linux

Написание первой программы Python с использованием IDLE

Ну как же можно обойтись без первой программы?

Перейдите в меню Файл → Новый файл → Для того чтоб открыть текстовый редактор. Как только редактор будет открыт, вы сможете писать программу. Чтобы запустить программу из текстового редактора и сохраните файл. Требуется нажать кнопку F5 или Выполнить → Run Module.

Читайте также:  Какие есть способы переустановки windows

Пишем Первую Программу На Python

Python IDLE Отладчик

Чтобы получить доступ к отладчику, перейдите в Раздел отладка → Отладчик (Debug → Debugger). Режим отладки будет включен, вы можете отлаживать и шагать через код.

Python IDLE Отладчик (Debug)

Изменение визуальных настроек IDLE Python

Чтоб поменять цвета, шрифты и другие настройки интерфейса. Перейдите в меню Параметры → Настройка IDLE. Это откроет окно настроек.

Настройки Python IDLE

Заключение

На сегодня все. Надеюсь вы поняли что такое IDLE и как его установить в Linux. Как написать первую программу python через интерпретатор и текстовый редактор. А так же как получить доступ к отладчику и как изменить настройки IDLE.

Источник

How to Install Python IDLE in Linux

IDLE is an Integrated and learning environment created with Python using the GUI Tkinter toolkit. This is mainly used by beginners to get familiar with Python. IDLE is a cross-platform application that works with Mac OS, Windows, and Linux. In windows, IDLE comes by default with the installation. For Mac OS and Linux, we have to install the IDLE separately.

IDLE Features

  • Interactive Interpreter.
  • A multi-window text editor.
  • Smart intends.
  • Code coloring.
  • Call tips.
  • Auto indentation.
  • Debugger with persistent breakpoints.
  • Stepping and Viewing of local and global Namespace.

If you are a beginner to Python programming or new to programming, IDLE is the best place to start with. But if you are an experienced programmer switching from another language to Python then you may try more advanced editors like Pycharm, VScode, Sublime Text, VIM, etc.

Install Python IDLE IDE in Linux

In most of today’s modern Linux distributions, Python is installed by default and it comes with the IDLE application. However, If isn’t installed, you can install it using your default package manager as shown.

Once the installation is completed type «idle» from the terminal or go to start menu type «idle» Launch application.

When you open the IDLE, the interactive terminal will be displayed first. The interactive terminal provides auto-completion too, you can press (ALT + SPACE) for auto-completion.

IDLE Interactive Terminal

Writing First Python Program Using IDLE

Go to File → New File → To open the text editor. Once the editor is opened you can write the program. To run the program from the text editor, save the file and press F5 or Run → Run Module.

Write First Python Program

To access the debugger go to Debug → Debugger. Debug mode will be on, you can debug and step through the code.

Python IDLE Debug

Go to Options → Configure IDLE. This will open settings windows.

Читайте также:  Где найти explorer exe windows 10

Python IDLE Settings

That’s all for today. We have seen what IDLE is and how to install it in Linux. How to write the first python program through interpreter and Text editor. How to access the builtin debugger and how to change the settings of IDLE.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

We are thankful for your never ending support.

Источник

How To Install Python idle IDE On Linux Operating System

P ython is preinstalled on my Ubuntu / Debian Linux desktop. I’m unable to find IDLE integrated development environment for Python. How do I install IDLE IDE?

Tutorial details
Difficulty level Easy
Root privileges Yes
Requirements Linux
Est. reading time 1m

IDLE is an integrated development environment for Python. You need to install the following package on Linux:

  1. python-tools ( python3-idle ) : This RHEL / CentOS / Fedora Linux package for IDLE includes several tools to help with the development of Python programs, including IDLE (an IDE with editing and debugging facilities), a color editor (pynche), and a python gettext program (pygettext.py).
  2. idle – This Debian or Ubuntu Linux meta package for IDLE. You may need to install idle-python2.5 package for Python v2.5, idle-python2.6 package for Python v2.6, idle-python3.1 package for Python v3.1.

How to search for package names on Linux

Run commands as per your operating systems:
# Debian/Ubuntu/Linux mint and co #
sudo apt search idle
sudo apt-cache search idle | grep IDE
# RHEL/CentOS/Fedora #
sudo yum search idle
sudo dnf search idle
# OpenSUSE or SUSE Enterprise Linux #
sudo zypper search idle | grep python
# Alpine Linux #
apk search python*idle
# Arch Linux search package #
pacman -Ss idel
Please note down package names as per your Linux distro.

IDLE Linux Installation Command

If you are using Debian / Ubuntu Linxu, type the following apt command/apt-get command to install idle IDE:
$ sudo apt-get install idle
## OR ##
$ sudo apt install idle
If you are using RHEL / CentOS / Scientifc / Fedora Linxu, type the following yum command to install idle IDE:
# yum install python-tools
Fedora and latest version of RHEL 8/CentOS 8 users can run the following dnf command to install the same:
$ sudo dnf install python3-idle
SUSE or OpenSUSE Linux user type the following zypper command:
sudo zypper in python3-idle
Alpine Linux Python users run apk command to install the same:
sudo apk add python3-idle

How do I start IDLE under Linux?

Type the following command:
$ idle
OR Visit menu option

  • No ads and tracking
  • In-depth guides for developers and sysadmins at Opensourceflare✨
  • Join my Patreon to support independent content creators and start reading latest guides:
    • How to set up Redis sentinel cluster on Ubuntu or Debian Linux
    • How To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
    • How to set up Mariadb Galera cluster on Ubuntu or Debian Linux
    • A podman tutorial for beginners – part I (run Linux containers without Docker and in daemonless mode)
    • How to protect Linux against rogue USB devices using USBGuard

Join Patreon

Fig.01 Python IDLE IDE in action

Summing up

You learned how to install idle IDE on Linux using various commands. IDLE is Python’s Integrated Development, and Learning Environment created for new Python users. Once you become comfortable with Python programming, you may wish to switch to well-established code editors such as Vim, Emacs, PyCharm, and more. See

🐧 Get the latest tutorials on Linux, Open Source & DevOps via

Category List of Unix and Linux commands
Documentation help • mandb • man • pinfo
Disk space analyzers df • duf • ncdu • pydf
File Management cat • cp • less • mkdir • more • tree
Firewall Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04
Linux Desktop Apps Skype • Spotify • VLC 3
Modern utilities bat • exa
Network Utilities NetHogs • dig • host • ip • nmap
OpenVPN CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04
Package Manager apk • apt
Processes Management bg • chroot • cron • disown • fg • glances • gtop • jobs • killall • kill • pidof • pstree • pwdx • time • vtop
Searching ag • grep • whereis • which
Shell builtins compgen • echo • printf
Text processing cut • rev
User Information groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w
WireGuard VPN Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04

Comments on this entry are closed.

There is really no need to use idle, the python shell — ipython under linux is way better than idle, it has both terminal and graphical(QT) versions.

I saw a little spelling mistake on the line: idle – This Debian or Ubunut

Источник

Читайте также:  Установка тем загрузчика линукс
Оцените статью