Install eclipse in Ubuntu and build a python development environment-[Ubuntu]

Source: Internet
Author: User

The general steps for installing and setting up a python development environment in Ubuntu this afternoon are as follows:

Because I am a little lazy, I don't need to download many things. I just need to use the command line to get it done. By the way, I will review the Linux commands.

Now let's get started:


1st off:. Install JDK


1) enter the following command in the terminal:

Sudo apt-Get install sun-java6-jdk

2) It has two versions 1.5 and 1.6 in this region. Currently, many versions are used.

Sudo Update-alternatives -- config Java

I selected 1.6:/usr/lib/JVM/Java-6-sun/JRE/bin/Java

3) Configure Environment Variables

Sudo gedit/etc/environment

Add the following content at the end of the pop-up file:

Classpath =.:/usr/lib/JVM/Java-6-sun/lib

Java_home =/usr/lib/JVM/Java-6-sun

JRE =/usr/lib/JVM/Java-6-sun/JRE


Okay. OK! Simple? Let's check whether the installation is successful: Enter the following command in the terminal:

Javac-version

Java-version

Don't ask me the difference between javac and Java. I should know what Java is.

Because I chose 1.6, my display is "javac 1.6.0 _ 16" and "Java version" 1.6.0 _ 10 ""


2nd off: Download the IDE (eclipse) and install the pydev plug-in

1) download an eclipse from sun. Don't ask me if you don't know the address.

2) install Python: Get the current directory in the python file of the terminal:./configure -- prefix =/usr; enter make after the prompt; enter sudo make install after the prompt; <! -- @ Page {size: 21 cm 29.7; margin: 2 cm} p {margin-bottom: 0.21} -->

Note: For 64-bit installation, you need to add: -- enable-Unicode = ucs4.
-- Enable-shared Parameter

3) then download the pydev plug-in:

Http://sourceforge.net/projects/pydev/files/pydev/org.python.pydev.feature-1.4.6.2788-sources.zip

Copy the decompressed features and plugins files to the two directories corresponding to eclipse.

4) Verify that pydev is successfully installed

In eclipse, select help-> about eclipse SDK-> plug-in details. The about eclipse SDK plug-ins window appears, check whether there are at least five in the plug-in ID column. python. pydev and org. python. plug-ins starting with pydev. If yes, pydev has been successfully installed.

5) configure the pydev Interpreter

On the eclipse menu bar, choose Window> preferences> pydev> interpreter-Python, and click "new" on the right of the python interpreters box. In the displayed menu, enter the following name field: "Python", select the python installation path (for example, my path is/usr/bin/python2.5), and import all the packages. click "OK ".

6) Done!


Okay, that's easy. Get it done!


By the way, the question about creating shortcuts in Ubuntu is as follows:

Right-click the desktop and choose create launcher> write eclipse in the name line --> direct the command to your eclipse (for example: my options are/home/heruiqi/soft/Eclipse/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.