Установить ide python linux

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.

$ sudo apt install idle [On Debian/Ubuntu for Python2] $ sudo apt-get install idle3 [On Debian/Ubuntu for Python3] $ sudo yum install python3-tools [On CentOS/RHEL and Fedora]

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.

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.

Источник

5 лучших Python IDE для Ubuntu

Python — один из наиболее широко используемых языков программирования общего назначения. Многие популярные веб-сайты или приложения, которыми мы пользуемся каждый день, используют Python. Причиной популярности этого языка программирования является его простота и удобочитаемость.

Читайте также:  Удаление пользователя linux mint

Существует множество интегрированных сред разработки (IDE), предназначенных для разработки программного обеспечения на Python. В этой статье мы рассмотрим 5 лучших Python IDE для Ubuntu: Vim, PyCharm, Eric, Pyzo и Spyder. Итак, давайте начнем.

1. Vim

Vim используется многими разработчиками и пользователями Linux, потому что это очень быстрая и легко настраиваемая среда разработки. Что еще более важно, Vim упрощает задачу отладки и поддерживает множество инструментов и плагинов.

Vim может использоваться как в качестве автономного приложения, так и в качестве интерфейса командной строки. Поначалу Vim может быть сложен в настройке для новых пользователей, но как только вы к нему привыкнете, вам понравится программировать в Vim. Дополнительную информацию можно найти в документации.

Для того чтобы установить Vim, выполните команду ниже в терминале:

2. PyCharm

PyCharm — это очень популярная кроссплатформенная среда разработки Python, которая выпускается в двух версиях: Community Edition и Professional Edition. Community Edition — бесплатна и имеет открытый исходный код, а Professional Edition — платная и является проприетарным ПО. Это настраиваемая и многофункциональная среда разработки с такими функциями, как встроенные инструменты для модульного тестирования и отладчик для Python, навигация по проекту и исходному коду, подсветка синтаксиса и ошибок, анализ кода и многое другое, что вы можете ожидать в IDE.

Pycharm имеет один из лучших графических интерфейсов по сравнению с другими Python IDE и может быть хорошим выбором для профессиональных разработчиков. Он доступен для последних версий Ubuntu в рамках пакета Snap и может быть загружен непосредственно из Ubuntu Software Center.

Для того чтобы установить Pycharm, выполните команду ниже в терминале:

$ sudo snap install pycharm-community --classic

3. Eric

Eric — свободно распространяемая среда разработки с открытым исходным кодом, написанная на Python. Это кросс-платформенная IDE с поддержкой многих языков программирования, включая Python. Eric IDE обладает множеством функций, включая автоматическое завершение кода, подсветку синтаксиса и ошибок, встроенный отладчик для Python, расширенные функции поиска, встроенную поддержку систем управления версиями Mercurial и Subversion, а также Git (с помощью дополнительного плагина) и др.

Eric имеет простой, но настраиваемый графический интерфейс с поддержкой плагинов и расширений. Он также имеет интегрированный класс браузера.

Для того чтобы установить Eric, выполните команду ниже в терминале:

4. Pyzo

Pyzo — это кроссплатформенная среда разработки с открытым исходным кодом, написанная на Python. Она использует Conda для управления пакетами Python. IDE нацелена на интерактивность и простоту и состоит из редактора, оболочки и набора стандартных инструментов. Вот несколько примеров инструментов Pyzo: подсветка синтаксиса, структура исходного кода, пользовательский интерфейс наподобие Matlab, браузер файлов и др.

Pyzo также имеет интерактивную справку и поддерживает все основные языки программирования. Pyzo можно загрузить и установить из Software Centre или при помощи команды для терминала:

$ sudo apt-get update $ sudo apt-get install python3-pip python3-pyqt4 $ sudo python –m pip install pyzo –upgrade

После завершения установки выполните следующую команду, чтобы запустить Pyzo IDE:

5. Spyder

Spyder — это свободная и кроссплатформенная интегрированная среда разработки, специально созданная для научных расчетов на Python (название Spyder расшифровывается как Scientific PYthon Development EnviRonment). Это многоязычная среда разработки с такими функциями, как автоматическое завершение кода, подсветка синтаксиса, анализ кода, интеграция с научными библиотеками Python (NumPy, SciPy, Matplotlib, Pandas).

Читайте также:  Расширение файла linux чем открыть

Spyder имеет пользовательский интерфейс с удобной навигацией и прост в использовании для новых пользователей. Он также поддерживает IPython и многое другое программное обеспечение с открытым исходным кодом.

Для того чтобы установить Spyder, выполните команду ниже в терминале:

$ sudo apt-get install spyder

В заключение можно отметить, что выбор лучшей IDE всегда зависит от предпочтений и потребностей программиста. Перечисленные здесь IDE являются лучшими с точки зрения редактирования кода, а также отладки и общего опыта использования.

Источник

How to Install IDLE Python IDE on Ubuntu 20.04

Ubuntu Python IDLE IDE

IDLE stands for Integrated DeveLopment Environment. It is an IDE for Python, written in Python language itself and based on Tkinter with bindings to the Tk widget set. IDLE is most suitable for beginners as it is easy to use and not feature overloaded. Hence, it is very popular in educational environments.

IDLE is a cross-platform IDE solution that comes with a basic feature set that includes:

  • Multi-window text editor with syntax highlighting, auto-completion, smart indent, and other features to make coding easy.
  • Python shell with syntax highlighting.
  • Integrated debugger with stepping, persistent breakpoints, and call stack visibility.

For more information on IDLE, visit the following official documentation:

In this article, we will be installing IDLE through the Ubuntu command line. The article also explains how to launch IDLE and use it to write and run a simple Python script.

We have run the commands and procedures mentioned in this article on a Ubuntu 18.04 or Ubuntu 20.04 system.

How to Install IDLE?

Python is installed by default on all the latest Ubuntu releases and it also usually comes with the IDLE application. However, if you have a minimal installation of Ubuntu that lacks any IDLE UI application, you can install it by following this method:

Open the Ubuntu command line, The Terminal, either through the system Dash or the Ctrl+Alt+T shortcut.

Then, you need to update your system’s repository index through the following command as sudo:

This way your system’s repository gets in-line with the Internet repositories and that helps you in installing the latest version of any available software.

Update the package list

You need to run this command as sudo because only an authorized user can add/remove, update, and configure software on Ubuntu. The system will ask you the password for sudo and then execute the rest of the command when you have provided a correct password.

The next step is to run the following command in order to install IDLE3. This is the best-suited version when you have either Python 2 or Python 3 installed on your system.

$ sudo apt-get install idle3

Install IDLE

The system might ask you for a Y/n input in order to make sure that you indeed want to install the software. Please enter Y and then hit Enter, after which IDLE3 will be installed on your system.

Читайте также:  Drweb server security suite linux

Launch IDLE

You can launch IDLE both through the command line or the Ubuntu UI.

Run the following command in the Terminal in order to launch IDLE.

Launch IDLE

Or else, enter keywords relevant to IDLE in your Ubuntu Dash search as follows:

IDLE Desktop Icon

This will list all the IDLE applications installed on your system. Click on any one of them to Launch the Python integrated development environment.

Your first Python program in IDLE

Open the IDLE application, which by default looks like this:

Python Shell

Your first line of code starts from where you see the three “greater than” or “>” symbols.

Place the cursor at this point and write or copy & paste the following line of code:

print("This is my first Python program :) :)")

This is a simple print statement that can be used to print anything inside the parentheses “( )”, on the screen.

When you hit Enter, the output is displayed as follows:

My first Python Program

You can even choose to save the program (through the Save/Save As option from the File menu) and access it later (through the Open option from the File menu or directly by clicking it from where you have saved it).

After reading this article, you can integrate the IDLE Python development environment into your Ubuntu system and make the best use of its UI-based simple and easy to use feature set.

Источник

Установка IDLE Python в Ubuntu 20.04

IDLE (расшифровывается как Integrated Development and Learning Environment — Интегрированная среда для разработки и обучения) — интегрированная среда разработки на языке Python. Официально — искажение от слова IDE, но на самом деле названа в честь Эрика Айдла (Eric Idle) из комедийной комик группы Монти Пайтон.

Преимущества IDLE заключается в подсветке синтаксиса, поддержке автозаполнения и встроенным отладчиком. Поставляется вместе с Python и может использоваться на многих платформах, среди которых Windows, Mac OS, Unix-подобные ОС. В данной статье будет рассмотрена установка данной IDE в операционной системе Ubuntu 20.04 и запуск первой программы.

Установка IDLE Python в Ubuntu 20.04

Для установки сначала необходимо обновить индекс пакетов при помощи команды:

GW6U0FPt5Rpjm8OIKpZMO4Qy7S1QJSfNPyozevedNuNSsJqo6ftu5IbYufz4QnmjRMT7VU3KR8RReZFCt93LaZp65AizQ8oHY8kmlWulG13RfPj2SNbVu7mRjynHxHww7uxo7536YkaWu+qcsNsxAsEvOpVHfrpwR2z7Olz8JVkbyg0xa5jgnD+N9SuGMWKKkGpYLN+17bnRCjoI6tAetTwkVWEi6LR3db0hFexe19Wsd8kcjEKgsFFiKFKa9Es8bDNPCqx80CrBc16R67ss3UVr59lZwFaZZQuXcpFkUfp2pqjxkN7+P3K8Su1JHhATAAAAAElFTkSuQmCC

Так как интерпретатор языка программирования Python уже установлен в Ubuntu 20.04 по умолчанию, то можно сразу переходить к установке самой IDLE выполнив команду:

+bp6D4xA49jokElyXA3BYtQYjXT4S8ZFw+cwmMX++P8BObd5TA2H7xYAAAAASUVORK5CYII=

Для запуска IDLE можно воспользоваться 2 способами. Первый способ заключается в запуске из терминала для этого необходимо ввести команду:

B5S88AAAAASUVORK5CYII=

Второй способ — запуск при помощи ярлыка из меню с приложениями:

HkkkqsuKxgAAAABJRU5ErkJggg==

Создание первой программы в IDLE

Запустите IDLE любым из вышеперечисленных способ и в открывшемся окне интерпретатора введите следующий код:

print («Первая программа созданная в IDLE!»)

AYj7DgHYXRzCAAAAAElFTkSuQmCC

Нажмите на клавишу Enter и в терминале отобразится фраза — Первая программа созданная в IDLE!

Выводы

В этой небольшой статье была рассмотрена установка IDLE в Ubuntu 20.04, а также было показано написание первой программы, выводящее строку в терминал.

Обнаружили ошибку в тексте? Сообщите мне об этом. Выделите текст с ошибкой и нажмите Ctrl+Enter.

Источник

Оцените статью
Adblock
detector