Eclipse and pydev build a perfect Python Development Environment (UBUNTU)

Source: Internet
Author: User
Eclipse and pydev build a perfect Python Development Environment (UBUNTU)

Two days ago, I successfully built a python development environment in windows. This time, UBUNTU had the previous experience and it was much easier.

It is also found that the operations in Ubuntu are more convenient than those in windows.

Installation environment

Intel Core 7250 (dual-core), UBUNTU 10.04.1

1. Install openjdk6

Sudo apt-Get install openjdk-6-jdk

The reason for choosing openjdk is that he has passed the test, is perfectly compatible with JDK, and has replaced the sun-java6-jdk in the Linux update source. (Note 1)

2. Install eclipse 

Sudo apt-Get install eclipse

Ubuntu 10.04 already comes with Python 2.6.

4. Install the pydev plug-in for eclipse
When eclipse is enabled, the first startup will allow you to select a workspace. By default, select the check box and do not remind you.

In the Help menu, select install new software ···,
Select the Add button, name: pydev (this can be started at will), Location: http://pydev.org/updates (update address of pydev), OK

Select pydev for eclipse under pydev. Do not select any other options. Otherwise, the dependency check cannot be used.(Note 2)

Click Next to install
I will ask you if you trust Aptana or pydev.

Restart eclipse

5. Configure the pydev plug-in
Select preference from the window menu,

1. pydev-> interpreter-python, newa pythoninterpreter, fill in the interpreter name and character, and select the corresponding python.exe.

Eclipse obtains the current encoding of the operating system as its default encoding, whileThe default encoding of ubuntu10.04 is utf8, so you do not need to change it.

6. 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 at will.Code, Run

In the displayed dialog box, select Python run,

OK

Note:

Note 1: You can also use the common JDK 6, but you need to add an unofficial update source, or go to the Oracle official website to manually download and install it.

NOTE 2: pydev mylyn integration (optional): This depends on pydev for eclipse. You have to install the latter.

Reference: 

What is the relationship between openjdk and sunjdk?

Eclipse and pydev build a perfect Python Development Environment (Windows)

Two days ago, I successfully built a python development environment in windows. This time, UBUNTU had the previous experience and it was much easier.

It is also found that the operations in Ubuntu are more convenient than those in windows.

Installation environment

Intel Core 7250 (dual-core), UBUNTU 10.04.1

1. Install openjdk6

Sudo apt-Get install openjdk-6-jdk

The reason for choosing openjdk is that he has passed the test, is perfectly compatible with JDK, and has replaced the sun-java6-jdk in the Linux update source. (Note 1)

2. Install eclipse 

Sudo apt-Get install eclipse

Ubuntu 10.04 already comes with Python 2.6.

4. Install the pydev plug-in for eclipse
When eclipse is enabled, the first startup will allow you to select a workspace. By default, select the check box and do not remind you.

In the Help menu, select install new software ···,
Select the Add button, name: pydev (this can be started at will), Location: http://pydev.org/updates (update address of pydev), OK

Select pydev for eclipse under pydev. Do not select any other options. Otherwise, the dependency check cannot be used.(Note 2)

Click Next to install
I will ask you if you trust Aptana or pydev.

Restart eclipse

5. Configure the pydev plug-in
Select preference from the window menu,

1. pydev-> interpreter-python, newa pythoninterpreter, fill in the interpreter name and character, and select the corresponding python.exe.

Eclipse obtains the current encoding of the operating system as its default encoding, whileThe default encoding of ubuntu10.04 is utf8, so you do not need to change it.

6. 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 at will, run

In the displayed dialog box, select Python run,

OK

Note:

Note 1: You can also use the common JDK 6, but you need to add an unofficial update source, or go to the Oracle official website to manually download and install it.

NOTE 2: pydev mylyn integration (optional): This depends on pydev for eclipse. You have to install the latter.

Reference: 

What is the relationship between openjdk and sunjdk?

Eclipse and pydev build a perfect Python Development Environment (Windows)

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.