Python + Eclipse + pydev environment setup, pythonpydev

Source: Internet
Author: User

Python + Eclipse + pydev environment setup, pythonpydev

This article focuses on using the Eclipse + pydev plug-in to write Python code, and configuring Eclipse + Pydev on Mac and Eclipse + Pydev on Windows.

Reprinted: https://www.cnblogs.com/Bonker/p/3584707.html

Editor: Python built-in IDLE

It is simple and quick. You can learn Python or compile small software. Very useful.

Editor: Eclipse + pydev plug-in

1. Eclipse is an IDE written in JAVA, so that it can be used in general, with a low learning cost. After learning Eclipse, you can write Python or JAVA.

2. Eclipse is powerful.

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

 

Install Python

: Http://www.python.org/

Python is available in Python 2 and Python 3. There are some differences in syntax. To be safe, install Python 2.7.6.

 

Install JAVA JDK

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

Eclipse can run only after java jdk is installed.

Download Eclipse

Http://www.eclipse.org/downloads/ to download it here.

After downloading, decompress the package and you can use it directly. Eclipse does not need to be installed.

 

Pydev plug-in Introduction

Official pydev plug-in Website: http://www.pydev.org/(no need to download)

 

Install the pydev plug-in Eclipse

Start Eclipse and click Help-> Install New Software.... In the displayed dialog box, click Add. Name fill: Pydev, Location fill http://pydev.org/updates

Then install the SDK step by step. If an error is reported during installation. And then reinstall it.

 

Configure the pydev Interpreter

After installing pydev, you must configure the Python interpreter.

On the Eclipse menu bar, choose Windows> Preferences.

In the dialog box, click pyDev-> Interpreter-Python. Click the New button and select the path of python.exe. A window containing multiple check boxes is displayed. Click OK.

For Mac systems, click "Auto Config ".

 

Start writing code

Start Eclipse and create a New project, File-> New-> Projects... select PyDev-> PyDevProject and enter the project name.

 

Create pyDev Package. You can write code.

 

Enter the package name. Enter Test1 here.

 

 

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.