"Go" Eclipse+pydev Installation and configuration

Source: Internet
Author: User

Original URL: http://www.51testing.com/html/67/589567-866611.html

Python Development has many tools, Eclipse+pydev is the most common one. This article provides a brief introduction to Windows Eclipse+pydev installation and configuration.

Eclipse is a Java -based extensible open source development platform. For its part, it is just a framework and a set of services for building a development environment through plug-in components.

PyDev is a Python IDE plugin for Eclipse, and the PyDev plugin transforms eclipse into a powerful and easy-to-use Python ide that facilitates many Python developers.

First, install Eclipse

eclipse:http://www.eclipse.org/downloads/

Currently the latest version Eclipse-sdk-3.7.1-win32.zip

The downloaded Eclipse-sdk-3.7.1-win32.zip compressed package is extracted directly to the D packing directory (e.g., D:\Eclipse), and the installation is complete.

To use eclipse, you also need to install the JRE (Java Runtime Environment)

Jre:http://www.oracle.com/technetwork/java/javase/downloads/index.html

Currently the latest version Jre-7u3-windows-i586.exe

Double-click Install.

Second, install the Pydev plug-in

Official address: http://pydev.org/index.html
: http://sourceforge.net/projects/pydev/files/

Two methods of installation:

1, will download the PyDev decompression (currently the latest version PyDev 2.4.0.zip compressed package), PyDev after decompression generally contains plugins and feature folder, the PyDev after the extracted folder copy to eclipse after the extracted directory can be, When you are finished and then start Eclipse, you can see the installation of the Pydev component in the Eclipse menu help->about Eclipse sdk->installation Detail.

2. Select menu directly in Eclipse: Help-software updates-find and Install, select Search for new features to Intall, click the new Remote Site button, enter http: pydev.org/updates, download and install.

Iii. configuration of Eclipse + Pydev

In the Eclipse menu Windows->preferences->pydev->interpreter python Configure the Python parser you want to use only.
Click the New button and select Python.exe from the Python installation path.

Detailed procedures

Install Pydev:

First you need to go to eclipse official website download: Http://www.eclipse.org/,Eclipse requires JDK support, if Eclipse does not work properly, download the JDK installation on the Java website: http://www.oracle.com/ Technetwork/java/javase/downloads.

Open Eclipse, find the Help menu bar, go to install New software ... Options.

Click Work with: next to the input box click Add...,name can be anything, I entered the pydev,location is http://pydev.org/updates. Click OK.

Wait a moment and you'll see the options in the selection bar.

Select Pydev, then all the way next, go to the installation path selection interface, use the default settings, and then Finish. Eclipse will download PyDev and you can see the progress of the download from the Eclipse taskbar. After the Pydev is installed, you need to restart eclipse.

Configuration Pydev:

After the Pydev is installed, you need to configure the interpreter. In the Eclipse menu bar, choose Window > Preferences > Pydev > Interpreter–python to configure Python here. You first need to add an already installed interpreter. If you do not download and install Python, please download the 2.x or 3.x version on the official website: http://www.python.org/.

I am using the python3.x version and Python is installed under the D:\Python32 path. Click New to enter the dialog box. Interpreter name can be arbitrarily named, interpreter executable Select the Python interpreter Python.exe.

Click OK to jump out of a window with a lot of checkboxes, select the option you want to add to the system Pythonpath, and click OK.

Then in the Python Interpreters window, click OK again, which completes the configuration of the Python interpreter.

By this Pydev the configuration has been completed and you can use eclipse to start writing python.

Hola World:

In the Eclipse menu bar, choose File > New > Pydev > Project ..., select Pydev Project in the window, there are three kinds of projects you can create, select Pydev Project.

Click Next, enter the project name, select the appropriate project type, and the Python syntax version and Python interpreter you are using.

Once created, go to perspective, right click the src icon, select New->pydev Package and create a new one. The __init__.py file is automatically generated, and the file contains no content. Right-click the created package, select New->pydev module, create a new Python module, click Finish.

So we can start creating the first. py file.

How to install and configure Pydev to use Eclipse to write Python's beginner tutorial End ~

Reprinted to

Http://www.itokit.com/2012/0317/73351.html

http://blog.csdn.net/edwzhang/article/details/7519751

"Go" Eclipse+pydev Installation and configuration

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.