Home > Backend Development > Python Tutorial > Eclipse+Pydev installation tutorial

Eclipse+Pydev installation tutorial

Y2J
Release: 2017-05-17 14:01:29
Original
2407 people have browsed it

Eclipse+Pydev

1. Install Eclipse

Eclipse can be found and downloaded from its official website Eclipse.org. Usually we can choose the Eclipse version that suits us, such as Eclipse Classic. After the download is complete, unzip it to the directory you want to install.

Of course, before executing Eclipse, you must confirm that the Java runtime environment is installed, that is, JRE or JDK must be installed. You can go to (www.java.com/en/download/manual.jsp) to find the JRE download and Install.

2. Install Pydev

After running Eclipse, select help-->Install new Software, as shown in the figure below.

Eclipse+Pydev installation tutorial

Click Add and add the installation address of pydev: pydev.org/updates/, as shown in the figure below.

Eclipse+Pydev installation tutorial

After completion, click "ok", then click the "+" of PyDev to expand the PyDev node. Wait a short period of time for it to obtain PyDev related packages from the Internet. , when completed, there will be more PyDev related packages in the sub-nodes, check them and press next to install. As shown below.

Eclipse+Pydev installation tutorial

After the installation is complete, restart Eclipse

3. Set up Pydev

After the installation is complete, you still need to set up PyDev, select Window -> Preferences to set up PyDev. Set the path to Python and select New

Eclipse+Pydev installation tutorial

from Pydev's Interpreter - Python page. A window will pop up allowing you to select the installation location of Python. Select your installation The location of Python.

Eclipse+Pydev installation tutorial

After completion, PyDev is set up and you can start using it

4. Establish a Python Project:

After installing Eclipse+PyDev, We can start using it to develop projects. First, create a project. Select File -> New ->Pydev Project

Eclipse+Pydev installation tutorial

##. A new window will pop up. Fill in the Project Name and project save address, and then click next. Complete the creation of the project.

Eclipse+Pydev installation tutorial

5. Create a new Pydev

Module

It is impossible to execute the project alone, and then a new Pydev Moudle must be created. Select File -> New -> Pydev Module

Eclipse+Pydev installation tutorial

In the pop-up window, select the file storage location and Moudle Name. Note that there is no need to add .py to the Name, it will automatically help We add. Then click Finish to complete the creation.

Eclipse+Pydev installation tutorial

Enter the code for "hello world".

Eclipse+Pydev installation tutorial

6. Execute the program

After the program is written, we can start executing the program and find the execution button# on the upper toolbar ##.

Eclipse+Pydev installation tutorial

After that, a window will pop up allowing you to choose the execution method. Usually we choose Python Run to start executing the program.

Eclipse+Pydev installation tutorial

【Related recommendations】

1.

Special recommendation:"php programmer tools "Box" V0.1 version download

2.

Python free video tutorial

3.

Introducing 10 commonly used Python IDE

4.

Choose a Python IDE that suits you

The above is the detailed content of Eclipse+Pydev installation tutorial. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template