Using Eclipse and Pydev development Python__python

Source: Internet
Author: User
using Eclipse and Pydev to develop Python

Python's editors are many, specifically visible: http://wiki.python.org/moin/PythonEditors. The official idle, Pythonwin and Eclipse (Pydev) are more recommended.
Idle is available after installing the official Python software package, Pythonwin by installing ActivePython. And Pydev is a plug-in to expand Eclipse, and you can use eclipse to develop Python after you install it.

1. Install Eclipse
Eclipse can be found and downloaded on its official website eclipse.org, and usually we can choose the version of Eclipse that is appropriate for us, such as Eclipse Classic. When the download is complete, unzip it to the directory you want to install.
Of course, before you perform eclipse, you must confirm that you have installed the Java Runtime Environment, that is, you must have the JRE or JDK installed, and you can find the JRE download and install it (http://www.java.com/en/download/manual.jsp).

2. Installation Pydev
After you run eclipse, select Help-->install new Software, as shown in the following figure.

Click Add to add Pydev installation address: http://pydev.org/updates/, as shown in the following figure.

Click "OK" when you are done, then click on the Pydev "+", expand the Pydev node, to wait a short period of time, let it get pydev of the relevant suite, when completed will be more than Pydev related kits in the child nodes, check them and then press next to install. As shown in the following figure.

Once the installation is complete, restart eclipse

3, set Pydev
After the installation is complete, you need to set up Pydev, select window-> preferences to set Pydev. Set the path to Python, select New from the Pydev Interpreter-python page

A window will pop up allowing you to choose where to install Python and choose where you want to install Python.

When you are finished, Pydev is set up and ready to use.

4. Build Python Project:
Once the Eclipse+pydev is installed, we can start using it to develop the project. First you create a project, select File-> New->pydev Project

A new window will pop up, fill in Project Name, and save the address for the project, then click Next to complete the project creation.

5, create a new Pydev Module
There are items that cannot be executed, then you must create a new Pydev moudle, select File-> new-> Pydev Module

Select the file location and Moudle name in the pop-up window, noting that name does not add. py, it will automatically help us Add. Then click Finish to complete the creation.

Enter the code for "Hello World".

6. Execution procedure
After the program is written, we can start executing the program and find the button that executes on top of the toolbar.

Then pops up a window that lets you choose how to do it, and usually we choose Python run and start executing the program.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.