Eclipse and Pydev build the perfect Python development environment (Windows chapter)

Source: Internet
Author: User

Directory
Install Python
Python for Eclipse plug-in installation
Configuring the Pydev Plugin
Test

Install Python
Download the latest version from the website from http://python.org/download/. The installation process is similar to other Windows software. The current stable version is Python 2.7.6 and Python 3.3.4.

Using Python on the Windows command line
If you want to invoke Python from the Windows command line, you need to set the Python environment variable first.

For Windows, click Advanced-Environment variables, system-I, Control Panel. Click the variable called path in the System variables form and edit the variable to add the D:\dev\python2.7.6 to its end. Of course, it is the installation directory where Python resides.

Test whether the python environment variable is set successfully

C:\users\jiqinlin>pythonpython 2.7.6 (default, Nov, 19:24:24) [MSC v.1500-bit (AMD64)] on Win32type "Help", "Copyright", "credits" or "license" for more information.>>>

Python for Eclipse plug-in installation
1. Download Python for Eclipse
Python for Eclipse, such as: Org.python.pydev.feature-1.6.3.2010100513.zip

2, decompression Pydev plug-in, you will find features, plugins two folders, and then the features folder to move the files under the D:\dev\eclipse\features directory, the Plugins folder files moved to D:\dev\ The Eclipse\plugins directory.
Note: D:\dev\eclipse\ for the Eclipse installation directory

3. Restart Eclipse, the Pydev configuration item appears in Windows->preferences, indicating that the Pydev plug-in installation was successful.

Configuring the Pydev plugin
Select Preference in the Window menu,
1, windows->preferences->pydev->interpreter-python,new a Python interpreter, fill in the Interpreter name and path, the path to select the corresponding Python.exe.

Python 3.x is required in the following steps, Python 2 is optional. The individual is more accustomed to Unicode, so it is set here once.
2, General->editors->text editors->spelling,encoding changed into Other:utf-8

3, General->workspace,text file encoding changed to Other:utf-8
At this point, the Pydev configuration is complete.

Test
File->new->project, choose Pydev under the Pydev project,grammer and interpreter Select the appropriate version, Finish.

Right-click on the PyDev Package Explorer project, New->pydev Module, write a name, Finish.
Then write a few lines of code, and Run in the popup dialog box, select Python run,ok

Eclipse and Pydev to build the perfect Python development environment (Windows article)

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.