Python+eclipse installation Process

Source: Internet
Author: User

First, install Eclipse

Second, install Python

Python's: http://www.python.org/getit/

After entering, download it according to your needs (System, version). Here i download is: python-3.4.1.msi, download after the installation can be directly click. My installation directory is: C:\PYTHON34

And then configure the system environment: My Computer, properties, advanced environment variables, system variables

Set path and write your python's installation path to the PATH variable.

Third, install Pydev plug-in

Official address: http://pydev.org/index.html

Two installation methods for installing the Pydev plug-in:

1, will download the Pydev decompression, Pydev after decompression generally contains plugins and feature folder, will be Pydev after the extracted folder copy to eclipse after the decompression directory can be completed before starting eclipse, can be in the Eclipse menu help- >about Eclipse sdk->installation Detail See the installation of the Pydev component.

2. Select the menu directly in Eclipse: Help-install New updates-and, enter http://pydev.org/updates, download and install.

Iv. configuration of the Pydev in eclipse

In the Eclipse menu Windows->preferences->pydev->interpreter python Configure the Python parser you want to use only.

Click the New button and select Python.exe from the Python installation path.

V. Writing a python hello world!

1. Switch to Python view

A. Go to Window-Open perspective-Other, then select Pydev and click OK. Looking at the upper right corner, you will see that the view is replaced by "Java" to "PyDev".

B. Views are the most useful tools for switching work tasks (such as writing Java code and writing Python code). If you look at the file-new menu, you'll see that different views have different options.

2. Create a new project
A, go to file--New--Pydev project to start a wizard.
B. In the next window that appears, enter the name of the project and select "Python" and "3.0" as the project type.
C, ensure "create default ' src ' folder and add it to the Pythonpath?" Be selected. Click Finish.

3. Create a new module
A. Select the project you just created and go to file-New-PyDev Module. This will launch a new Pydev Module Creation Wizard, enter the name of the module in the correct location, leave the package blank, and select Finish.

4. Writing and running the program

A. Here is the procedure to greet the world. Simply enter print (' hello,world! ') in the file. You can delete or keep the default generated content from the file, and Python will ignore it.

b, right-click the file and choose Save (or press CTRL + S) to save the file.

C. Finally, select the xxx.py icon and go to run--run as--the Python run to start running the program. (The quicker way is to right-click the xxx.py icon, select Run as--Python run, or press CTRL + F11).

D, Look at the console panel below the screen and you will see the program's input results.

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.