Python+eclipse+pydev Environment Construction

Source: Internet
Author: User

Article Source: https://www.cnblogs.com/Bonker/p/3584707.html

This article focuses on using the Eclipse+pydev plugin to write Python code

Editor: Python's own IDLE

Quick and easy, learn python or write small software. Very useful.

Editor: Eclipse + Pydev Plugin

1. Eclipse is the IDE that writes Java, so it can be generalized and the learning cost is small. Learn eclipse and write Python or Java later.

2. Eclipse, a powerful feature.

3. Eclipse Cross-platform, can run on Mac and Windows

Install Python

: http://www.python.org/

Python has 32 versions of Python 2 and Python.  There are some differences in grammar. To be safe, I'm installing Python 2.7.6

Installing the Java JDK

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

Eclipse requires this to install the Java JDK before it can run.

Download eclipse

http://www.eclipse.org/downloads/to this download.

Once downloaded, the decompression can be used directly, and eclipse does not need to be installed.

Pydev Plugin Introduction

Pydev Plugin's official website: http://www.pydev.org/(no download required)

Installing the Pydev plugin in eclipse

Launch Eclipse, click Help->install New software ...  In the popup dialog box, click the Add button. Name fill in: Pydev, location fill http://pydev.org/updates

Then, step by step, put it down. If the process of loading, error. Re-install it.

Configuring the Pydev Interpreter

After installing Pydev, you need to configure the Python interpreter.

In the Eclipse menu bar, click Windows->preferences.

In the dialog box, click Pydev->interpreter-python. Click the New button, select the path of the Python.exe, and open it to display a window with many check boxes. Click OK

If it is a Mac system, click the "Auto Config" button

Start writing code

Start Eclipse, create a new project, file->new->projects ... Select Pydev->pydevproject to enter the project name.

New PyDev package. You can write the code.

Enter the package name, enter Test1 here

Python+eclipse+pydev Environment Construction

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.