This article recommends several good Python IDE (integrated development environment), and PyCharm is recommended. Of course, you can choose the Python IDE that suits you according to your own preferences.
PyCharm is a Python IDE built by JetBrains.
PyCharm has general Python IDE features such as debugging, syntax highlighting, project management, code jumping, smart tips, auto-completion, unit testing, version control, and more.
In addition, PyCharm also provides some great features for Django development, while supporting Google App Engine, and even more cool, PyCharm supports IronPython.
PyCharm official download address: http://www.jetbrains.com/pycharm/download/
Sublime Text has a beautiful user interface and powerful features such as code thumbnails, Python plugins, code snippets, and more. You can also customize key bindings, menus, and toolbars.
Sublime Text's main features include: spell checking, bookmarks, full Python API, Goto functionality, instant project switching, multiple selections, multiple windows, and more.
Sublime Text is a cross-platform editor that supports Windows, Linux, Mac OS X and other operating systems.
Using Sublime Text 2's plugin extensions, you can easily create a nice Python IDE. Here are a few plugins (you can find more):
- CodeIntel: Auto Completion + Member/Method Tips (highly recommended)
- SublimeREPL: used to run and debug some programs that need to interact (E.G. programs that use Input())
- Bracket Highlighter: bracket matching and highlighting
- SublimeLinter: Code pep8 format check
1. Install Eclipse
Eclipse can be found on its official website Eclipse.org and Download, usually we can choose the Eclipse version that suits you, such as Eclipse Classic. After the download is complete, extract it to the directory you want to install.
Of course, before executing Eclipse, you must confirm that the Java runtime environment is installed, that is, you must install JRE or JDK, you can go to (http://www.java.com/en/download/manual.jsp) Find the JRE download and install.
2, install Pydev
After running Eclipse, select help-->Install new Software, as shown below.
Click Add to add the pydev installation address: http: //pydev.org/updates/, as shown below.
Click "ok" when you are done, then click "+" of PyDev to expand the PyDev node. Wait a short time for it to get the PyDev related kit from the Internet. When it is finished, you will have more PyDev related kits. In the child nodes, check them and press next to install them. As shown below.
After the installation is complete, restart Eclipse
3, set Pydev
After the installation is complete, you also need to set up PyDev and select Window -> Preferences to set PyDev. Set the path to Python and select New from Pydev's Interpreter - Python page.
A window will pop up for you to choose the location where Python will be installed, and choose where you want to install Python.
After completion, PyDev is set up and ready to use.
4. Create a Python Project:
After installing Eclipse+PyDev, we can start using it to develop projects. First create a project and select File -> New -> Pydev Project
A new window will pop up, fill in the Project Name, and the project save address, then click next to complete the project creation.
5. Create a new Pydev Module
If there is a project that cannot be executed, then you must create a new Pydev Moudle and select File -> New -> Pydev Module
Select the file storage location and Moudle Name in the pop-up window. Note that Name does not need to add .py, it will automatically help us to add. Then click Finish to complete the creation.
Enter the code for "hello world".
6, execute the program
After the program is written, we can start executing the program and find the executed button on the toolbar above.
A window will pop up that lets you choose how to execute. Usually we choose Python Run and start executing the program.
More Python IDE
Of course there are a lot of great Python IDEs, you are free to choose, more Python IDE See: http://wiki.python.org/moin/PythonEditors