Elicipse Building a python development environment

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.

Configure PyDev plug-ins  
Preference in the Window menu,
1, windows->preferences->pydev-> Interpreter-python,new a Python interpreter, fill in the Interpreter name and path, and select the appropriate python.exe for the path. &NBSP,
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/ Lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650) this.width=650 ; "Src=" Https://s1.51cto.com/wyfs02/M01/8E/39/wKiom1i5AkGiZ3ewAABFu9_bw_s993.png-wh_500x0-wm_3-wmp_4-s_ 1430639600.png "title=" Image.png "alt=" wkiom1i5akgiz3ewaabfu9_bw_s993.png-wh_50 "/>

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>

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

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/8E/39/wKiom1i5Ak-i1dLSAACwOXpz1pA232.png-wh_500x0-wm_ 3-wmp_4-s_1087976602.png "title=" Image (2). png "alt=" wkiom1i5ak-i1dlsaacwoxpz1pa232.png-wh_50 "/>

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

Test

File->new->project, select Pydev under Pydev project,grammer and interpreter to select the appropriate version, Finish. &NBSP,
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/ Lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650) this.width=650 ; "Src=" Https://s4.51cto.com/wyfs02/M00/8E/37/wKioL1i5AmaA750-AACixZaB9OU777.png-wh_500x0-wm_3-wmp_4-s_ 1100704676.png "title=" Image (3). png "alt=" wkiol1i5amaa750-aacixzab9ou777.png-wh_50 "/> in Pydev Package Explorer Project right-click on the New->pydev Module, write a name, finish.
then write a few lines of code, Run in the popup dialog box to select Python run,ok 
650) this.width=650; "Src="/e/u261/themes/default/images/ Spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid # DDD; "alt=" spacer.gif "/>

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/8E/39/wKiom1i5AnKjisj2AAA9rgar7k8416.png-wh_500x0-wm_ 3-wmp_4-s_2761766871.png "title=" Image (4). png "alt=" wkiom1i5ankjisj2aaa9rgar7k8416.png-wh_50 "/>

This article is from the "Can't Grow" blog, be sure to keep this source http://tfbaby.blog.51cto.com/3125450/1902936

Elicipse Building a python development environment

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.