Use Eclipse and PyDev in Ubuntu to build a perfect Python Development Environment

Source: Internet
Author: User
After successfully setting up a Python development environment in Windows, we had the previous experience on Ubuntu, which was much easier and found that the operations in Ubuntu were more convenient than those in Windows. Installation environment IntelCore7250 (dual-core), operating system Ubuntu10.04.11. install OpenJDK6sudoapt-getinstallopenjdk-6-jdk

A Python development environment has been successfully established in Windows. The previous experience in Ubuntu is 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 will get the current encoding of the operating system as its default encoding, while the default encoding of Ubuntu10.04 is UTF8, so you do not need to change it.

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.