diff --git a/sources/tech/20230228.0 ⭐️ How to Install IDLE Python IDE in Ubuntu and Other Linux.md b/sources/tech/20230228.0 ⭐️ How to Install IDLE Python IDE in Ubuntu and Other Linux.md deleted file mode 100644 index 7333a261f1..0000000000 --- a/sources/tech/20230228.0 ⭐️ How to Install IDLE Python IDE in Ubuntu and Other Linux.md +++ /dev/null @@ -1,111 +0,0 @@ -[#]: subject: "How to Install IDLE Python IDE in Ubuntu and Other Linux" -[#]: via: "https://www.debugpoint.com/install-idle-ubuntu-linux/" -[#]: author: "Arindam https://www.debugpoint.com/author/admin1/" -[#]: collector: "lkxed" -[#]: translator: "geekpi" -[#]: reviewer: " " -[#]: publisher: " " -[#]: url: " " - -How to Install IDLE Python IDE in Ubuntu and Other Linux -====== - -**Python’s default IDE IDLE is not installed by default in Ubuntu and other distros. Learn how to install it in this guide.** - -IDLE (**I**ntegrated **D**evelopment and **L**earning **E**nvironment) is a [Python IDE][1], written in Python language itself and usually gets installed in Windows as part of [Python installation][2]. It is ideal for beginners and straightforward to use. For those who are learning Python, such as students, it can be a good IDE to start with. - -Basic features such as syntax highlighting, smart ident, and auto-completion are some of the features of this IDE. You can always learn more about the IDLE features in the official [documentation][3]. - -### IDLE in Ubuntu and other Linux - -All Linux distributions, including Ubuntu, come with Python pre-installed. Even if you manually upgrade or install Python versions, the IDLE IDE doesn’t come with that. You have to install it manually. - -For **Debian, Ubuntu, Linux Mint and related distribution** open a terminal and run the following command to install IDLE. - -``` -sudo apt update -``` - -``` -sudo apt install idle3 -``` - -Hit yes when the command asks you whether you want to install IDLE or not. After the command is complete, IDLE will be installed in your Ubuntu system. - -For **Fedora, RHEL, CentOS**, use the following command to install it. - -``` -sudo dnf update -``` - -``` -sudo dnf install idle3 -``` - -**Arch Linux** users can install it using the following command. - -``` -sudo pacman -S python tk -``` - -![IDLE install and run in Ubuntu][4] - -### Launching IDLE and writing a sample program to test - -After the installation in Ubuntu, Debian, Linux Mint, and Fedora – you can find the IDLE icon in the application menu. See below. - -![IDLE icon in the application menu][5] - -If you are using Arch Linux, you need to run below from the command line to launch IDLE. - -``` -idle -``` - -Once you launch IDLE, you should see the main window, as shown in the image below. - -![IDLE editor main window][6] - -By default, it shows you a shell where you can directly execute Python codes in each line. It works like any shell interpreter. And when you hit enter, you get the output, and the three “>” symbols go to the next line for the next command. - -![Running a simple Python statement in IDLE][7] - -IDLE also allows you to open any .py file from its file menu. It will open the file in a separate window where you can make changes and run it directly. You can run using F5 or from the option Run > Run Module. - -![A python file opened from IDLE][8] - -![Option to Run the file using menu][9] - -The output is shown in a separate output window. From the output window, you can start debugging, step into a line or file, view stack trace and other options. - -![Output is shown in a separate output window of IDLE][10] - -### Closing Notes - -Now you learned how to install the IDLE IDE in Ubuntu and other distributions and how to run a statement or a Python program. IDLE can be a good starting point for beginners to grasp the basics before heading over to more complex IDEs. - -I hope this guide helps you on your Python journey. - --------------------------------------------------------------------------------- - -via: https://www.debugpoint.com/install-idle-ubuntu-linux/ - -作者:[Arindam][a] -选题:[lkxed][b] -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 - -[a]: https://www.debugpoint.com/author/admin1/ -[b]: https://github.com/lkxed/ -[1]: https://www.debugpoint.com/5-best-python-ide-code-editor/ -[2]: https://www.debugpoint.com/install-python-windows/ -[3]: https://docs.python.org/3/library/idle.html -[4]: https://www.debugpoint.com/wp-content/uploads/2023/02/IDLE-install-and-run-in-Ubuntu.jpg -[5]: https://www.debugpoint.com/wp-content/uploads/2023/02/IDLE-icon-in-the-application-menu.jpg -[6]: https://www.debugpoint.com/wp-content/uploads/2023/02/IDLE-editor-main-window.jpg -[7]: https://www.debugpoint.com/wp-content/uploads/2023/02/Running-a-simple-Python-statement-in-IDLE.jpg -[8]: https://www.debugpoint.com/wp-content/uploads/2023/02/A-python-file-opened-from-IDLE.jpg -[9]: https://www.debugpoint.com/wp-content/uploads/2023/02/Option-to-Run-the-file-using-menu.jpg -[10]: https://www.debugpoint.com/wp-content/uploads/2023/02/Output-is-shown-in-a-separate-output-window-of-IDLE.jpg \ No newline at end of file diff --git a/translated/tech/20230228.0 ⭐️ How to Install IDLE Python IDE in Ubuntu and Other Linux.md b/translated/tech/20230228.0 ⭐️ How to Install IDLE Python IDE in Ubuntu and Other Linux.md new file mode 100644 index 0000000000..ae9f9977fb --- /dev/null +++ b/translated/tech/20230228.0 ⭐️ How to Install IDLE Python IDE in Ubuntu and Other Linux.md @@ -0,0 +1,111 @@ +[#]: subject: "How to Install IDLE Python IDE in Ubuntu and Other Linux" +[#]: via: "https://www.debugpoint.com/install-idle-ubuntu-linux/" +[#]: author: "Arindam https://www.debugpoint.com/author/admin1/" +[#]: collector: "lkxed" +[#]: translator: "geekpi" +[#]: reviewer: " " +[#]: publisher: " " +[#]: url: " " + +如何在 Ubuntu 和其他 Linux 下安装 IDLE Python IDE +====== + +**在 Ubuntu 和其他发行版中,Python 的默认 IDE IDLE 没有被默认安装。在本指南中了解如何安装它。** + +IDLE (**I**ntegrated **D**evelopment and **L**earning **E**nvironment)(集成开发学习环境)是一个 [Python IDE][1],由 Python 语言本身编写,通常作为 [Python 安装][2]的一部分被安装在 Windows 中。它是初学者的理想选择,使用起来很简单。对于那些正在学习 Python 的人,比如学生,它可以作为一个很好的 IDE 来开始使用。 + +语法高亮、智能识别和自动补全等基本功能是这个 IDE 的一些特点。你可以随时在官方[文档][3]中了解更多关于 IDLE 的功能。 + +### Ubuntu 和其他 Linux 中的 IDLE + +所有的 Linux 发行版,包括 Ubuntu,都预装了 Python。即使你手动升级或安装了 Python 版本,IDLE IDE 也不会自带。你必须手动安装它。 + +对于 **Debian、Ubuntu、Linux Mint 和相关发行版**,打开终端,运行以下命令来安装 IDLE。 + +``` +sudo apt update +``` + +``` +sudo apt install idle3 +``` + +当命令询问你是否要安装 IDLE 时,点击 Yes。命令完成后,IDLE 将被安装在你的 Ubuntu 系统中。 + +对于 **Fedora、RHEL、CentOS**,使用下面的命令来安装它。 + +``` +sudo dnf update +``` + +``` +sudo dnf install idle3 +``` + +**Arch Linux** 用户可以使用以下命令进行安装。 + +``` +sudo pacman -S python tk +``` + +![IDLE 在 Ubuntu 的安装和运行][4] + +### 启动 IDLE 并编写一个测试程序 + +在 Ubuntu、Debian、Linux Mint 和 Fedora 中安装后,你可以在应用菜单中找到 IDLE 的图标。见下图。 + +![应用菜单中的 IDLE 图标][5] + +如果你使用的是 Arch Linux,你需要在命令行中运行以下内容来启动 IDLE。 + +``` +idle +``` + +启动 IDLE 后,你应该看到主窗口,如下图所示。 + +![IDLE 编辑器主窗口][6] + +默认情况下,它会显示一个 shell,你可以直接在每一行中执行 Python 代码。它的工作方式和任何 shell 解释器一样。而当你点击回车键时,你会得到输出,还有三个 “>” 符号进入下一行,执行下一个命令。 + +![在 IDLE 中运行一个简单的 Python 语句][7] + +IDLE 也允许你从它的文件菜单中打开任何 .py 文件。它将在一个单独的窗口中打开该文件,在那里你可以进行修改并直接运行它。你可以使用 F5 或者从选项 “Run > Run Module” 来运行。 + +![从 IDLE 中打开的一个 Python 文件][8] + +![使用菜单运行该文件的选项][9] + +输出会显示在一个单独的输出窗口中。在输出窗口中,你可以开始调试,进入一行或文件,查看堆栈跟踪和其他选项。 + +![输出显示在 IDLE 的一个单独的输出窗口中][10] + +### 总结 + +现在你学会了如何在 Ubuntu 和其他发行版中安装 IDLE IDE,以及如何运行一条语句或一个 Python 程序。对于初学者来说,IDLE 是一个很好的起点,在进入更复杂的 IDE 之前,可以先掌握基础知识。 + +我希望这篇指南对你的 Python 之旅有所帮助。 + +-------------------------------------------------------------------------------- + +via: https://www.debugpoint.com/install-idle-ubuntu-linux/ + +作者:[Arindam][a] +选题:[lkxed][b] +译者:[geekpi](https://github.com/geekpi) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]: https://www.debugpoint.com/author/admin1/ +[b]: https://github.com/lkxed/ +[1]: https://www.debugpoint.com/5-best-python-ide-code-editor/ +[2]: https://www.debugpoint.com/install-python-windows/ +[3]: https://docs.python.org/3/library/idle.html +[4]: https://www.debugpoint.com/wp-content/uploads/2023/02/IDLE-install-and-run-in-Ubuntu.jpg +[5]: https://www.debugpoint.com/wp-content/uploads/2023/02/IDLE-icon-in-the-application-menu.jpg +[6]: https://www.debugpoint.com/wp-content/uploads/2023/02/IDLE-editor-main-window.jpg +[7]: https://www.debugpoint.com/wp-content/uploads/2023/02/Running-a-simple-Python-statement-in-IDLE.jpg +[8]: https://www.debugpoint.com/wp-content/uploads/2023/02/A-python-file-opened-from-IDLE.jpg +[9]: https://www.debugpoint.com/wp-content/uploads/2023/02/Option-to-Run-the-file-using-menu.jpg +[10]: https://www.debugpoint.com/wp-content/uploads/2023/02/Output-is-shown-in-a-separate-output-window-of-IDLE.jpg \ No newline at end of file