Eclipse Installation Configuration Pydev Plugin
About Pydev
Pydev is a powerful eclipse plug-in that enables users to develop and debug Python applications using Eclipse. The advent of the PyDev plugin makes it easy for many Python developers to provide some good features such as syntax error hints, source code editing assistants, Quick Outline, Globals Browser, Hierarchy View, run and debug, and more.
Official website Installation
Download installation is convenient, but may be due to network reasons for too long or failure, the official website installation process is as follows:
1. Help-install New Software
2. Click-add
3. Enter Name and Location,name random, location is http://pydev.org/updates; Click OK
4. Select and wait for the installation, you can select only PyDev, eclipse will download PyDev, you can see the progress of the download from the Eclipse taskbar. After the Pydev is installed, you need to restart eclipse.
Offline installation
Usually the official website installs and the unsatisfactory, you understand ... Recommended offline installation, steps below
1. Download Pydev offline installation package, my cloud disk address: Http://pan.baidu.com/s/1jGGJIQy
Unzip after completion
2. Copy the extracted features and plugins two folders to the features and plugins directories in the Eclipse installation directory, respectively.
Configure Pydev
Regardless of the official website installation or offline installation, you need to configure Pydev, the steps are as follows
1. Start Eclipse and open window->preferences
2. Select Interpreter-python, then select New
3. In the popup dialog box interpreter name write Python, in interpreter executable write Python.exe address, such as I Am "C:\Python27"; then click OK
4. After the above steps, the following dialog box pops up:
Continue clicking OK
5. Finally, click OK under the Reference interface; After waiting, you can write Python in eclipse.
Create a Python Project
To create a simple Python Project, follow these steps:
1. File-new-project
2. Select Pydev-pydev Project; click Next
3. Project name Name, select version, click Finish
4. After a successful creation, right-click the project to create a new package or module
Right-click to display:
5. New package, under the package new Module, the name is arbitrary, as follows: (some templates are provided, this way to temporarily select Empty)
6. Enter the code, such as print("Hello world! ") ; Click to select
As you can see, the output error is obviously a coding problem.
Add # -*-coding:utf-8-*- on the file header, run again, and succeed!
Eclipse Installation Configuration Pydev Plugin