eclipse--python development environment construction

Introduction to pydev plugin

PyDev is a Python IDE for Eclipse
pydev official website: http://www.pydev.org/

Install pydev plugin in Eclipse

Start Eclipse, click Help->Install New Software... In the pop-up dialog box, click the Add button. Fill in the Name: Pydev, Fill in the Location http://pydev.org/updates

Then install it step by step. If the installation process, an error is reported. Just reinstall.

Add repository
Select available software

Configure 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 to python.exe, and open a window with many checkboxes. Click OK
If it is a Mac system, click the "Auto Config" button

pydev interpreter configuration

use

Start Eclipse, create a new project, File->New->Projects… Select PyDev->PyDevProject and enter the project name:
Create project

New Pydev Package
New Pydev Package
Package Name

New Pydev Module
new Pydev Module
Module Name

Skill

  • New file template settings: Windows ->Preferences ->PyDev ->Editor ->Templates, you can manage templates
  • Use the shortcut key Ctrl+1 during the coding process, the skills can be explored

refer to

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325689110&siteId=291194637
Recommended