Use eclipse and pydev to develop Python

Source: Internet
Author: User

Http://loosky.net /? P = 1152

There are many Python editors. For details, see http://wiki.python.org/moin/pythoneditors. The official idle, pythonwin, and eclipse (pydev) are recommended.
Idle can be obtained after the official Python software package is installed, and pythonwin can be obtained by installing activepython. Pydev is a plug-in used to expand eclipse. After installation, you can use eclipse to develop python.

1. Install eclipse
Eclipse can be found and downloaded on eclipse.org, the official website. Generally, we can select an eclipse version suitable for ourselves, such as Eclipse classic. After the download is complete, decompress the package 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 find the JRE download and install in (http://www.java.com/en/download/manual.jsp.

2. Install pydev
After running eclipse, select help-> install new software, as shown in.

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

Click "OK" and then click "+" of pydev to expand the pydev node. Wait for a short time and ask it to obtain the relevant pydev kit from the Internet, after completion, the pydev related suites will be added to the sub-nodes. Select them and click Next to install them. As shown in.

After installation, restart eclipse.

3. Set pydev
After the installation is complete, you also need to set pydev and select window-> preferences to set pydev. Set the python path and select new from the interpreter-Python page of pydev.

A window will pop up asking you to select the python installation location and select the location where you install python.

After completing the settings, you can start using pydev.

4. Create a python project:
After installing eclipse + pydev, we can start to use it for project development. First, create a project and select File> New> pydev project.

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

5. Create a New pydev Module
A project cannot be executed. You must create a new pydev Moudle and select File> New> pydev module.

In the pop-up window, select the file storage location and Moudle name. Note that the name does not need to be added with. py, And it will automatically help us add. Click Finish to complete the creation.

Enter the "Hello World" code.

6. Execute the program
After the program is completed, we can start executing the program and find the execution button on the toolbar above.

A window will pop up asking you to select the execution method. Generally, we select Python run to 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.