Learn Python (2) _python

Source: Internet
Author: User

A good integrated development environment, can greatly improve the programming efficiency. So, I need to find a good python development tool first.

Eclipse +pydev, it feels good. I put the key points of the installation process in detail in this article so that I and the reader can later reinstall the time, do not find the north.

Eclipse is a Java free IDE, and I am installing the eclipse-sdk-3.2.1-win32.zip,123m

Download Address: http://www.eclipse.org/downloads/download.php

After the decompression, even if the installation is complete, is a green software. Run Eclipse.exe, compared with my most commonly used Delphi, the 1th impression Eclipse is gorgeous, more beautiful than the 3.1 version. Perhaps another Java development tool, NetBeans, can also develop Python, which is more nuanced than eclipse, but I didn't find the relevant data, so I chose Eclipse.

To develop Python in eclipse, you also need to install a plugin: PyDev,

Download Address: http://sourceforge.net/projects/pydev/

org.python.pydev.feature-1_2_4.zip software is not big, 3.2M

In Delphi, installation components, usually in the component menu, Eclipse does not have this menu. With VC and Delphi experience, adjust the settings of the environment, generally in the Project menu, Eclipse has the Project menu, but no corresponding submenu.

Looking at Pydev's profile, it was in Eclipse's Help menu, Eclipse/help/software updates/find and install ...

Select Search for new features to install

Select New Local Site and enter the directory on your hard disk after Pydev.zip decompression.

Then, you need to set the location of the Python interpreter and tell Eclipse,python.exe under which directory.

Select Window/preferences , find Pydev/interpreter-python in the left-hand list , and type in the Python interpreters on the right. Your python.exe, my installation is C:\python25\python.exe .

This Python IDE is installed. Give it a try.

Create a new Pydev Project, enter a Hello world, one step test run, the effect is shown in the figure below.

The breakpoint setting is a green ball that is not the same as the DELPHI,VC red ball.

You need to double-click to set a breakpoint, and the DELPHI,VC click Setting Breakpoint is different.

Ma Fei Tao

Reference:

Python Development with Eclipse and ANT

Http://www-128.ibm.com/developerworks/cn/opensource/os-ecant/index.html

Oh. I usually do not use the debugger, are using print+log+ eyes. If you are interested, you can also try the editor Ulipad I developed. You can download from Http://wiki.woodpecker.org.cn/moin/UliPad and you need to install Wxpython. It's a pure Python-written software.

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.