mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-25 23:11:02 +08:00
ALL
This commit is contained in:
parent
e3f3fc2f20
commit
2c7bfb78ae
@ -2,157 +2,187 @@
|
||||
[#]: via: "https://www.debugpoint.com/5-best-python-ide-code-editor/"
|
||||
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: " "
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
[#]: translator: "wxy"
|
||||
[#]: reviewer: "wxy"
|
||||
[#]: publisher: "wxy"
|
||||
[#]: url: "https://linux.cn/article-15288-1.html"
|
||||
|
||||
5 Best Python IDE(s) and Code Editor(s)
|
||||
6 个最好的 Python IDE 和代码编辑器
|
||||
======
|
||||
We list the five best Python code editors for Ubuntu/Linux and Windows in 2022.
|
||||
|
||||
[Python][1] is everywhere today, and it is arguably the C programming language of the modern era. You can find Python everywhere, from websites, apps, data science projects, and AI to IoT devices. So being a popular programming language of this decade, it is essential to know the development environment of Python, where developers create applications, especially if you are starting afresh.
|
||||
![][0]
|
||||
|
||||
Many Python development environments are available with features and utilities catering to your need. Some of them are useful for beginners learning Python by setting up the environment and other users for heavy Python development and complex setups. Here, in this post, I will touch upon the five best of them that would help you to pick one for your own need and use case.
|
||||
> 我们列出了 2022 年适用于 Linux 和 Windows 的六个最佳 Python 代码编辑器。
|
||||
|
||||
### Best Python Editor for Coding
|
||||
如今,[Python][1] 无处不在,它可以说是现代版的 C 语言编程语言。从网站、应用程序、数据科学项目、人工智能到物联网设备,你可以发现 Python 无处不在。因此,作为这十年来流行的编程语言,了解 Python 的开发环境是很有必要的,开发人员用它创建应用程序,特别是如果你是刚刚开始学习 Python 编程,更需要了解 Python 开发环境。
|
||||
|
||||
This top list features the following editors:
|
||||
许多 Python 开发环境都提供了可以满足你需求的功能和工具。其中有些环境对学习 Python 的初学者很有用,而另外一些用户则适用于重型 Python 开发和复杂的设置。在这里,在这篇文章中,我将谈一谈其中最好的几个,这将有助于你根据自己的需要和使用情况选择一个。
|
||||
|
||||
1. Eclipse
|
||||
2. PyCharm
|
||||
3. Spyder
|
||||
4. Sublime Text
|
||||
5. Thonny
|
||||
### 最好的 Python 编码编辑器
|
||||
|
||||
#### 1. Eclipse with PyDev
|
||||
这个榜单上有以下几个编辑器:
|
||||
|
||||
![Eclipse Editor][2]
|
||||
1. Visual Studio Code
|
||||
2. Eclipse
|
||||
3. PyCharm
|
||||
4. Spyder
|
||||
5. Sublime Text
|
||||
6. Thonny
|
||||
|
||||
[Eclipse][3] is a free and open-source IDE developed by IBM. This complete IDE is used for Java and Android development. However, it supports many other programming languages, including Python. You can use Eclipse with the popular PyDev plugin, which enables you to convert Eclipse to a complete Python development environment. With PyDev integration in Eclipse, you can do the compilation, code analysis, live debugging, interactive console access, and many more features.
|
||||
#### 1、Visual Studio Code
|
||||
|
||||
##### Advantage
|
||||
![Visual Studio Code][46]
|
||||
|
||||
* Extensive features and complete Python development IDE.
|
||||
尽管它是微软创造的,但 Visual Studio Code 是最好的代码编辑器之一。不仅是 Python,对于所有流行和趋势的编程语言都是。
|
||||
|
||||
##### Disadvantage
|
||||
它具有语法高亮、代码补完、调试、代码片段、内置 Git 等诸如此类的功能。对于新手来说,它有点复杂,但也只需几个小时就能学会。
|
||||
|
||||
* A heavyweight on system performance.
|
||||
* Targetted for advanced users.
|
||||
然而,它是用 Electron 框架构建的,可能会感觉稍微慢一些。但在高端的开发硬件下这不是问题。它是一个自由开源的应用程序,适用于 Linux、macOS 和 Windows。
|
||||
|
||||
##### Installation and more information
|
||||
以下是适用于 Ubuntu、Fedora 和相关发行版的单个 deb 和 RPM 包:
|
||||
|
||||
* Platform: Linux
|
||||
* Type: IDE
|
||||
* Price: Free
|
||||
* Source: Open Source
|
||||
* Official Download link: [PyDev][4], [Eclipse][5]
|
||||
* Official Website: [Eclipse][6], [PyDev Plugin][7]
|
||||
* Flatpak: [Eclipse for Java is available as Flatpak via Flathub][8]. You can try this version after [setting up Flatpak.][9]
|
||||
> **[下载 VS Code][47]**
|
||||
|
||||
#### 2. PyCharm Editor
|
||||
你也可以为 Flatpak 设置你的系统,并从终端运行以下命令,在所有 Linux 发行版上安装它。
|
||||
|
||||
![PyCharm Editor][14]
|
||||
```
|
||||
flatpak install flathub com.visualstudio.code
|
||||
```
|
||||
|
||||
Developed by JetBrains, [PyCharm][15] provides intelligent code completion, code inspections, on-the-fly error highlighting, quick fixes, automated code refactorings, and rich navigation capabilities.
|
||||
#### 2、带有 PyDev 的 Eclipse
|
||||
|
||||
PyCharm’s massive collection of tools out of the box includes an integrated debugger and test runner; Python profiler; a built-in terminal; integration with major VCS and built-in database tools; remote development capabilities with remote interpreters; an integrated ssh terminal; and integration with Docker and Vagrant.
|
||||
![Eclipse 编辑器][2]
|
||||
|
||||
In addition to Python, PyCharm provides first-class support for various Python web development frameworks, specific template languages, JavaScript, CoffeeScript, TypeScript, HTML/CSS, AngularJS, Node.js, and more.
|
||||
[Eclipse][3] 是一个由 IBM 开发的自由开源的 IDE。这个完备的 IDE 可用于 Java 和 Android 开发。然而,它也支持许多其他编程语言,包括 Python。你可以将 Eclipse 与流行的 PyDev 插件一起使用,它可以将 Eclipse 转换成一个完整的 Python 开发环境。通过将 PyDev 集成在 Eclipse 中,你可以进行编译、代码分析、实时调试、交互式控制台访问,以及更多的功能。
|
||||
|
||||
PyCharm has two versions of installers. The professional version and a community version. The community version is free and open source. The professional version is not free as it comes with professional tools and extensive support. The professional edition has a monthly subscription version of <10 USD for individual use.
|
||||
优势:
|
||||
|
||||
However, if you are a beginner, you can start with the free Community edition of PyCharm.
|
||||
* 丰富的功能和完整的 Python 开发 IDE。
|
||||
|
||||
For both Scientific and Web Python development. With HTML, JS, and SQL support.
|
||||
劣势:
|
||||
|
||||
##### Advantage
|
||||
* 对系统性能有很大影响。
|
||||
* 针对高级用户。
|
||||
|
||||
* Advanced and modern editing capabilities for professionals that aid rapid developments.
|
||||
安装和更多信息:
|
||||
|
||||
##### Disadvantage
|
||||
* 平台:Linux、Mac 和 Windows
|
||||
* 类型:集成开发环境
|
||||
* 价格:免费
|
||||
* 源代码:开源
|
||||
* 官方下载链接:[PyDev][4]、[Eclipse][5]
|
||||
* 官方网站:[Eclipse][6]、[PyDev 插件][7]
|
||||
* Flatpak:[Eclipse for Java 通过 Flathub 以 Flatpak 的形式提供][8],你可以在 [设置 Flatpak][9] 之后尝试这个版本
|
||||
|
||||
* Most professional tools are available in the paid version (approximately 8 to 10 USD per month for individual use).
|
||||
#### 3、PyCharm 编辑器
|
||||
|
||||
##### Installation and additional information
|
||||
![PyCharm 编辑器][14]
|
||||
|
||||
* Platform: Linux, Mac, and Windows
|
||||
* Type: IDE
|
||||
* Price: Free (Community edition) and Paid (Professional Edition)
|
||||
* Source: Open Source (Community Edition)
|
||||
* [Official Download link][16]
|
||||
* Flatpak:You can install the [community version via Flathub][17] after [setting up your Linux system for Flatpak][18].
|
||||
由 JetBrains 开发的 [PyCharm][15] 提供了智能代码补完、代码检查、即时错误高亮、快速修复、自动代码重构和丰富的导航功能。
|
||||
|
||||
#### 3. Spyder Editor
|
||||
PyCharm 开箱即用的大量工具包括:集成的调试器和测试运行器;Python 剖析器;内置终端;与主要版本控制系统和内置数据库工具的集成;借助远程解释器提供的远程开发能力;集成 SSH 终端;以及与 Docker 和 Vagrant 的集成。
|
||||
|
||||
除了 Python,PyCharm 还为各种 Python 网页开发框架、特定模板语言、JavaScript、CoffeeScript、TypeScript、HTML/CSS、AngularJS、Node.js 等提供了一流的支持。
|
||||
|
||||
PyCharm 有两个版本的安装程序:专业版和社区版。社区版是自由开源的。专业版不是免费的,因为它带有专业工具和广泛的支持。专业版有一个不到 10 美元的月度订阅版本,供个人使用。
|
||||
|
||||
然而,如果你是一个初学者,你可以从 PyCharm 免费的社区版开始。
|
||||
|
||||
它适用于科学和网页 Python 开发。具有 HTML、JS 和 SQL 支持。
|
||||
|
||||
优势:
|
||||
|
||||
* 为专业人士提供先进的现代编辑功能,有助于快速开发。
|
||||
|
||||
劣势:
|
||||
|
||||
* 大多数专业工具都在付费版本中提供(个人使用时每月约 8 至 10 美元)。
|
||||
|
||||
安装和其他信息:
|
||||
|
||||
* 平台:Linux、Mac 和 Windows
|
||||
* 类型:IDE
|
||||
* 价格:免费(社区版)和付费(专业版)
|
||||
* 源代码:开源(社区版)
|
||||
* [官方下载链接][16]
|
||||
* Flatpak:你可以在 [为 Flatpak 设置你的 Linux 系统][18] 之后安装 [Flathub 提供的社区版本][17]
|
||||
|
||||
#### 4、Spyder 编辑器
|
||||
|
||||
![Spyder Editor][23]
|
||||
|
||||
[Spyder][24] is a powerful Python editor written in Python for Python. It is designed to be used by scientists, engineers, and data scientists. It offers a unique combination of a comprehensive development tool’s advanced editing, analysis, debugging, and profiling functionality with the data exploration, interactive execution, deep inspection, and beautiful visualization capabilities of a scientific package.
|
||||
[Spyder][24] 是一个强大的 Python 编辑器,是用 Python 编写的。它是为科学家、工程师和数据科学家所设计的。它将综合开发工具的高级编辑、分析、调试和剖析功能与科学软件包的数据探索、交互式执行、深度检查和漂亮的可视化功能独特地结合起来。
|
||||
|
||||
##### Advantage
|
||||
优势:
|
||||
|
||||
* Lightweight and Free
|
||||
* 轻量级和免费
|
||||
|
||||
##### Disadvantage
|
||||
劣势:
|
||||
|
||||
* You have to download it as part of the Anaconda package. No standalone installer.
|
||||
* 你必须把它作为 Anaconda 软件包的一部分来下载。没有独立的安装程序。
|
||||
|
||||
##### Installation and additional instructions
|
||||
安装和其他说明:
|
||||
|
||||
* Platform: Anaconda
|
||||
* Type: IDE
|
||||
* Price: Free
|
||||
* Source: Open Source
|
||||
* [Official Download link][25]
|
||||
* [Official Website][26]
|
||||
* 平台:Anaconda
|
||||
* 类型:IDE
|
||||
* 价格:免费
|
||||
* 源代码:开源
|
||||
* [官方下载链接][25]
|
||||
* [官方网站][26]
|
||||
|
||||
#### 4. Sublime Text
|
||||
#### 5、Sublime Text
|
||||
|
||||
![Sublime Text][27]
|
||||
|
||||
[Sublime Text][28] is a sophisticated code editor with a Python programming interface. It is a cross-platform utility and natively supports many programming languages. You can extend its features and functionality using plugins. The sublime text comes with productivity-boosting features such as Goto anything, changes to multiple sections of your file simultaneously.
|
||||
[Sublime Text][28] 是一个支持 Python 编程的复杂的代码编辑器。它是一个跨平台的工具,原生支持许多编程语言。你可以使用插件来扩展其特性和功能。Sublime Text 带有提高生产力的功能,如 “Goto anything”,可以同时对文件的多个部分进行修改。
|
||||
|
||||
##### Advantages
|
||||
优点:
|
||||
|
||||
* Lightweight, free, and available for Windows, Mac, and Linux.
|
||||
* 轻量级、免费、可用于 Windows、Mac 和 Linux。
|
||||
|
||||
##### Disadvantages
|
||||
缺点:
|
||||
|
||||
* It is free to evaluate, but you must buy a license for advanced usage.
|
||||
* 它是免费评估的,但你必须购买一个许可证来进行高级使用。(LCTT 译注:但可以一直免费评估,而不限制时间,只是会时不时提醒)
|
||||
|
||||
##### Additional information and installation
|
||||
其他信息和安装:
|
||||
|
||||
* Platform: Windows, Linux, OS X
|
||||
* Type: IDE
|
||||
* Price: Free, but a license must be purchased for continuous use
|
||||
* Source: Closed Source
|
||||
* [Official Download link][29]
|
||||
* [Official Website][30]
|
||||
* Flatpak: Sublime Text is available via [Flathub as Flatpak][31]. Set up your [Linux system for Flatpak][32] and then install it.
|
||||
* 平台:Windows、Linux、OS X
|
||||
* 类型:IDE
|
||||
* 价格:免费,但必须购买许可证才能继续使用
|
||||
* 源代码:闭源
|
||||
* [官方下载链接][29]
|
||||
* [官方网站][30]
|
||||
* Flatpak:Sublime Text 可以通过 [Flathub 以 Flatpak 软件包][31] 获得。设置你的 [Linux 上的 Flatpak][32],然后安装它。
|
||||
|
||||
#### 5. Thonny Python Editor
|
||||
#### 6、Thonny Python 编辑器
|
||||
|
||||
![Thonny Editor][37]
|
||||
![Thonny 编辑器][37]
|
||||
|
||||
[Thonny][38] is a beginner’s Python IDE and is simple to use. It comes with the latest Python (3.7+ as of writing) built-in, so you do not need to worry about installing Python separately in your operating system. The user interface is clutterless and distraction-free for beginners. Some of the other notable features of Thonny include – a variable view, simple debugger, steps, and syntax errors.
|
||||
[Thonny][38] 是一个面向初学者的 Python IDE,使用起来很简单。它内置了最新的 Python(截至本文撰写时为 3.7+),所以你不需要在你的操作系统中单独安装 Python。用户界面毫不杂乱,对初学者来说没有任何干扰。Thonny 的其他一些显著特点包括:变量视图、简单调试器、单步调试和语法错误。
|
||||
|
||||
##### Advantages
|
||||
优点:
|
||||
|
||||
* Lightweight, free, and available for Windows, Mac, and Linux.
|
||||
* Perfect for absolute beginners in Python (or even in coding).
|
||||
* 轻量级、免费,可用于 Windows、Mac 和 Linux。
|
||||
* 非常适合 Python 的绝对初学者(甚至是编码的初学者)。
|
||||
|
||||
##### Disadvantages
|
||||
缺点:
|
||||
|
||||
* Available with basic features as it is a beginner’s IDE.
|
||||
* 由于它是一个初学者的 IDE,所以只有基本的功能。
|
||||
|
||||
##### Installation and additional info
|
||||
安装和其他信息:
|
||||
|
||||
* Platform: Windows, Linux, Mac
|
||||
* Type: IDE
|
||||
* Price: Free
|
||||
* Source: Open Source
|
||||
* [Official Download link][39]
|
||||
* Flatpak: It’s available as [Flatpak via Flathub][40]. Set up your [Linux system to install Flatpak][41], and they go for installing it.
|
||||
* 平台:Windows、Linux 和 Mac
|
||||
* 类型:IDE
|
||||
* 价格:免费
|
||||
* 源代码:开源
|
||||
* [官方下载链接][39]
|
||||
* Flatpak:它通过 [Flathub 以 Flatpak][40] 的形式提供。设置你的 [Linux 系统安装 Flatpak][41],然后去安装它。
|
||||
|
||||
---
|
||||
|
||||
有很多 Python 编辑器可用,这些是用于编码的六个最好的 Python 编辑器。你可以尝试其他值得注意的 Python 编辑器:VIM、IDLE(默认 Python 自带)、Cloud 9 和 Emacs。
|
||||
|
||||
🗨️ 你最喜欢哪个编辑器?请在下面的评论区告诉我们。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
@ -160,8 +190,8 @@ via: https://www.debugpoint.com/5-best-python-ide-code-editor/
|
||||
|
||||
作者:[Arindam][a]
|
||||
选题:[lkxed][b]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
译者:[wxy](https://github.com/wxy)
|
||||
校对:[wxy](https://github.com/wxy)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
@ -212,3 +242,6 @@ via: https://www.debugpoint.com/5-best-python-ide-code-editor/
|
||||
[43]: https://www.debugpoint.com/how-to-install-flatpak-apps-ubuntu-linux/
|
||||
[44]: https://flathub.org/apps/details/org.thonny.Thonny
|
||||
[45]: https://www.debugpoint.com/how-to-install-flatpak-apps-ubuntu-linux/
|
||||
[46]: https://www.debugpoint.com/wp-content/uploads/2022/10/Visual-Studio-Code.jpg
|
||||
[47]: https://code.visualstudio.com/
|
||||
[0]: https://img.linux.net.cn/data/attachment/album/202211/25/114333wj3t354qjhrggrvw.jpg
|
Loading…
Reference in New Issue
Block a user