Integrated python development environment in eclipse

Source: Internet
Author: User

About Eclipse

Eclipse is the most commonly used IDE in Java development and is powerful enough to run on Mac and WinDOS, learning simple.

Pydev Introduction

a The powerful Eclipse plug-in allows users to fully utilize eclipse for development and debugging of Python applications. It provides some good features such as syntax error hints, source code editing assistants, Quick Outline, Globals Browser, Hierarchy View, run and debug, and more. Has a lot of powerful features, but also very easy to use.

Detailed steps

  1. Installing the Python Environment

    :https://www.python.org/

Select downloads, there are different Python versions below for download, select the Window platform installation package in the download list, note that the version syntax after 3.* and before 3.* is slightly different

    

After the download is complete, double-click to run, then click the next step, the installation is very simple;

    

    Next, configure the Python environment variable

    Right-click Computer, properties, advanced system settings, environment variables

Add a variable to the system variable path , for example my environment variable is: d:\storm\python;d:\storm\python\scripts;

D:\storm is my Python installation path, replace it with my own, notice the middle is separated by semicolons

     

Below to test if the installation is successful

      Open cmd, input python, enter, if the installation is successful, there will be shown below, labeled Python version, mine is 2.6.6 version;

If it is not successful, check that the environment variable is set correctly

      

    

Check if the environment is working properly, and use Python to output a "Hellow world"

Enter print "Hello World", as shown below,

          Note: If it is 3.* or above, you will be prompted with a syntax error because the syntax is somewhat different; enclose the string in parentheses, for example: print (' Hello world! ')

      

   

2. Install Eclipse

:http://www.eclipse.org/downloads/

After the download is complete, it can be extracted and used directly without installation, which is very convenient.

  

  3. Install the Pydev plugin in Eclipse

run Eclipse, Click help->install New Software ..., in the popup dialog box, click Add,

In the small pop-up dialog box, name fill in pydev,location fill in the http://pydev.org/updates, such as, and then click OK, select Pydev, follow the next step to complete the plug-in installation

      

    4. Next is the final step, configure the Pydev interpreter

     In Eclipse, click Windows->preferences, in the Pop-up dialog box, click Pydev->interpreters-python Interpreter,

Select New on the page, a small dialog will pop up, such as, click Browse, select your Python installation path, click OK, and then

      

     

And then you can write your first Python project.

Click File->new->projects ... Select Pydev->pydevproject, for example,, select Create SRC, click Finish to complete

      

Right-click on SRC, New->pydev package, and start writing code.

      

Output "Hello World" in the code, right-click Run As->python runs, running the code, will output Hello World in the console;

Integration of the Python environment in Eclipse is successful

      

Integrated python development environment in eclipse

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.