Eclipse and PyDev build a perfect Python Development Environment tutorial (Windows), pydevpython

Source: Internet
Author: User

Eclipse and PyDev build a perfect Python Development Environment tutorial (Windows), pydevpython

This article describes how to build a Python development environment, as follows:

Directory

  • Install Python
  • Install python for eclipse plug-in
  • Configure the PyDev plug-in
  • Test

Install Python

Python3.4 32 packed with 64-bit: http://www.bkjia.com/softs/416131.html

Download the latest version from the website. The installation process is similar to that of other Windows software. Currently, stable versions include Python 2.7.6 and Python 3.3.4.

Use Python in Windows Command Line

If you want to call Python from a Windows command line, you need to set the Python environment variable first.

For Windows, choose Control Panel> system> advanced> environment variable. In the "System variables" form, click the variable named PATH, edit the variable, and add; D: \ dev \ python2.7.6 to its end. Of course, it is the installation directory where Python is located.

Test whether the python environment variable is set successfully.

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

Install python for eclipse plug-in

1. Download python for eclipse

Python for eclipse, such as: org.python.pydev.feature-1.6.3.2010100513.zip

2. decompress the pydev plug-in and you will find two folders: features and plugins. Then, move the files in the features folder to the Directory D: \ dev \ eclipse \ features, move the files in the plugins folder to the Directory D: \ dev \ eclipse \ plugins.
Note: D: \ dev \ eclipse \ is the eclipse installation directory.

3. Restart eclipse. The PyDev configuration item appears in windows-> preferences, indicating that the PyDev plug-in is successfully installed.

Configure the PyDev plug-in

Select Preference from the Window menu,

1. For windows-> preferences-> PyDev-> Interpreter-python, newa pythoninterpreter, fill in the Interpreter name and example, and select the corresponding python.exe.

The following steps are required for Python 3.x. Python 2 is optional. I am used to Unicode, so I set it here at one time.

2, General-> Editors-> Text Editors-> Spelling, Encoding into Other: UTF-8

3, General-> Workspace, Text file encoding into Other: UTF-8

So far, the configuration of PyDev is complete.

Test

File-> New-> Project: select the PyDev Project under PyDev, select the corresponding version for Grammer and Interpreter, and Finish.

Right-click the project in PyDev Package Explorer and choose New> PyDev Module. Enter a name and Finish it.

Then write a few lines of code. In the displayed dialog box, select Python Run and OK.

The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

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.