Choice of Python programming IDE

insert image description here

After the Python environment is installed, the next step is to choose an editor for writing Python programs. Here are several Python editors recommended for you. We refer to these editors as IDE for short. A good programming IDE can improve the efficiency of writing code, so let's start recommending without talking too much!

IDLE

First of all, the first Python IDE is IDLE. When we first come into contact with Python, we will definitely install IDLE when we install the Python environment. Naturally, we will definitely come into contact with IDLE. It is the simplest, concise and common Python IDE.

insert image description here
Advantages: Portable and concise
Disadvantages: Too concise, not suitable for writing programs, only used for testing simple programs, without code highlighting and prompts, and low programming efficiency.

Jupyter notebook

The second one is Jupyter notebook. This IDE is especially suitable for beginners. It can see the execution results of the program step by step. At the same time, this is also the advantage of the Python language, an interpreted language.

  • The installation of Jupyter can be done directly in the DOS window pip install jupyter, as shown in the figure:
    insert image description here
  • It is also very simple to open Jupyter notebook, just enter jupyter notebook directly in the Dos window, as shown in the figure below: If there is an error during the period, please refer to input jupyter notebook to report an error ModuleNotFoundError: No module named 'pysqlite2' solution
    insert image description here
    This is the most direct way to open , but if you want jupyter to open from the folder you created, there are two ways, one is to cd to the corresponding folder in dos; the second is relatively simple, directly to the corresponding folder, in the navigation jupyter notebookJust type in the box .
    insert image description here

Advantages: Simple, suitable for beginners, you can observe the running results of each step
Disadvantages: Still not suitable for complete program development.

PyCharm

This is a more professional IDE. Generally, developers use PyCharm to write Python projects. It is a product of JetBrains. It also corresponds to CLion for writing C++, IDEA for writing Java, and so on.

PyCharm is used for the functions that general IDEs have, such as debugging, syntax highlighting, Project management, code jumping, smart prompts, auto-completion, unit testing, version control...

In addition, PyCharm also provides some good features for Django development, while supporting Google App Engine, what's even cooler is that PyCharm supports IronPython!

It has two versions, one is the professional version, the other is the community version, the community version is free, and the professional version is charged; although it is charged, it is recommended to use the professional version, which has more functions and can also write web projects. version is not acceptable. And there are ways to use the professional version for free: 1. Apply for activation of the education mailbox; 2. Crack the crack package, directly to 2099. About downloading and installing the crack, there will be a detailed blog post in the future, so stay tuned.
insert image description here
insert image description hereAdvantages: Professional Python IDE, suitable for developers, with everything needed for the whole process of development.
Cons: Slow to open, still a bit heavy.

VSCode

VSCode (full name: Visual Studio Code) is a free cross-platform source code editor developed by Microsoft. The software supports syntax highlighting, code auto-completion (also known as IntelliSense), code refactoring, viewing definition functions, and has built-in command-line tools and Git version control system. Users can change the theme and keyboard shortcuts to achieve personalized settings, and can also install extensions through the built-in extension store to expand the software's functions.

It is one of the developers' favorite IDEs. It can write projects in almost all languages ​​across platforms, such as Java, Python, C++, PHP, etc. It is really almost perfect. The key is still free. You only need to install the corresponding language compilation plug-in It can be run, very light, and the interface is also very good-looking.
insert image description here
His download and installation will also be dedicated to a blog, because there are many configurations and a lot to explain, so stay tuned.
insert image description here
Advantages: The interface is good-looking, simple, lightweight, and suitable for developers.
Disadvantages: Almost no disadvantages, there may be delays in loading plugins or errors.

other

In addition to the above several classic Python IDEs, there are other IDEs that are also used by some people, such as Spyder, Anaconda, PyDev, Visual Studio, Wing, etc. What IDE do you usually use to write Python projects? Well, welcome to leave a message in the comment area.

Guess you like

Origin blog.csdn.net/hallobike/article/details/130446947