Installing Eclipse on Ubuntu 10.04 and Configuring PyDev

What is Eclipse?

Eclipse is an open source community whose projects are focused on building an extensible development platform, runtimes and application frameworks for building, deploying and managing software across the entire software lifecycle. Many people know eclipse as a Java IDE but Eclipse is much more than a Java IDE.

Check this for more :

What More than a Java IDE?

Eclipse is a IDE for;

Java , JavaEE, C, C++, C#, PHP, Javascript, Mobile Development, RCP & RAP, UML, Error handling, Maven, Python, Ruby..

Check Download Place ;


Marketplace (for plugins, bundles etc.) ;

Installing Eclipse on Ubuntu 10.04 Lts

I’m gonna talk about the easiest way to install eclipse on ubuntu, you can find other ways like terminal installitions or more like that.

You can use the Ubuntu Software Manager as the easiest way.

(Applications => Ubuntu Software Manager)

Type “eclipse” to the search box, that is placed at the right corner.

Select “eclipse” and “Install” it.

I know, there is no “install” option at the screen, because I installed eclipse before.

The install process may take some time according as your internet connection speed and system configuration.

When the process is done, you can reach eclipse under “Applications >> Programming >> Eclipse“.

Installing and Configuring the PyDev Plugin

1) Launch “eclipse”. When the workbench loaded, you will see the “Workspace Launcher” window. If not, don’t care, You can open it from “File -> Switch Workspace -> Other”.

You can change the path for workspace always, I have a folder on my desktop, named as “python” so I choose that path. If you want to change the path after, you now the way “File -> Switch Workspace -> Other”.

Now, you should see the welcome screen of Eclipse IDE.

Click on the arrow on the right to go to the workbench.

Go to “Help -> Install New Software

Select “Add“.

Enter “” under Location and click OK.

Back in the “Available Software” window, select the “PyDev for Eclipse” option. Do not select the “PyDev Mylyn Integration“.

Click “Next“, verify that PyDev is selected in the next window then select “Next” again.

Select “I accept the terms of the license agreement” then select “Finish“. The installer will begin to download the plug-in. A window may appear asking you whether you want to install the plug-in. Select Install All.

A security warning may appear asking whether you trust the software being installed click “ok” then ensure the correct items are selected and click yes and the instillation process will continue.

When the installation is complete, you will be asked if you want to restart Eclipse. Select Yes.

Now.. PyDev is installed succesfully on your Eclipse IDE.

It’s time to configure that plug-in !

Go to “Window> Preferences”. In the Preferences window, expand “Pydev” and select “Interpreter-Python“. Click “New”

Type your interpreter name, python31 maybe..

Select the Interpreter executable, usually and defaultly usr/bin/python3.1, If you installed in a different location type it.

And click “OK“. “Selection Needed” Window will appear. Leave it with defaults, if you don’t know what are you doing.

That’s it, welldone you configurated your Eclipse for Python.

Now lets see, what can we do in Python !

Go to “Window > Open Perspective > Other” and choose “Pydev“, then click OK. If you look at the upper right corner you will see that the perspective has changed from “Java” to “Pydev“. If it is not neccessary for you, right click on “Java” and select “close“.

Select “File -> New -> Project”. Select “Pydev -> Pydev Project”.

Choose “python” as the “project type”, and “3.0” as “grammer version” and “python31” as “interpreter”.

Make sure “create default ‘src’ folder and add it to the pythonpath?” is selected. Click “Finish”.

Select the project you just created and go to “File → New → Pydev Module”. This will launch a new Pydev Module Wizard where you should enter a name for your module and make sure it is in the right location. Leave the Package field blank and select “Finish”.

Now you sould see the file in ypur project. Open it if eclipse open it automaticly. Type some code, and run it.

Now you can see the print result at the “console” window.

A tweak for Eclipse :

We can understand the errors with highlight function of eclipse, but the line numbers can be pretty usefull for us too.

To show line numbers, right click on the bar that you can see in the next screen, and select “Show Line Numbers”.

Well done lads, see you soon.

/ M.Serhat Dundar /

5 thoughts on “Installing Eclipse on Ubuntu 10.04 and Configuring PyDev”

  1. Merhaba,

    İngilizce yazıyorum ara sıra, hatta artık hep İngilizce yazmayı düşünüyorum.

    Türkçe yazdığım zaman kimse okumuyor, kimse araştırmıyor (sizi tenzih ederim), İngilizce yazdığımda ise tüm dünya insanları bu yazılardan faydalanıyor.

    Zaten programlama gibi teknik bir konuyla ilgili kişilerin İngilizce bilmeden bu sektörde hiç şansları yok.

    Yoksa İngilizce yazmaya bayıldığımdan değil (: Maalesef bu bir dünya gerçeği.

Leave a Reply