Eclipse and Pydev to build a perfect Python development environment Tutorial (Windows Chapter) _python

Source: Internet
Author: User

This article tells how to build the python development environment, as follows:

Directory

    • Install Python
    • Python for Eclipse plug-in installation
    • Configuring Pydev Plug-ins
    • Test

Install Python

python3.4 32 and 64-bit packaged download address: http://www.jb51.net/softs/416131.html

Download the latest version from the Web site. 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 in the Windows command line

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

For Windows, click the Control Panel-> system-> advanced-> environment variable. In the System variables form, click the variable called path, and then edit the variable to add D:\dev\python2.7.6 to its end. Of course, it's the installation directory where Python resides.

Test whether the python environment variable is set successfully

C:\users\jiqinlin>python
Python 2.7.6 (default, Nov 2013, 19:24:24) [MSC v.1500-bit (AMD64)] on win
32
Type ' help ', ' copyright ', ' credits ' or ' license ' for the more information.
>>>

Python for Eclipse plug-in installation

1. Download Python for Eclipse

Python for eclipse download address, 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 under the file moved to the D:\dev\eclipse\features directory, the plugins folder under the file moved to D:\dev\ The Eclipse\plugins directory.
Note: D:\dev\eclipse\ installs the directory for Eclipse

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

Configuring Pydev Plug-ins

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.

The following steps Python 3.x required, Python 2 optional. The individual is more accustomed to Unicode, so set it up here at once.

2, General->editors->text editors->spelling,encoding changed into Other:utf-8

3, General->workspace,text file encoding changed into Other:utf-8

At this point, the Pydev configuration is complete.

Test

File->new->project, select the corresponding version of Pydev Project,grammer and interpreter under Pydev, Finish.

On the PyDev Package Explorer Project right button, New->pydev Module, casually write a name, finish.

And then write a few lines of code, Run in the pop-up dialog box to select the Python run,ok

Original link: http://www.cnblogs.com/linjiqin/p/3579995.html

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.