Home > Eclipse, Python > Python Development in Eclipse in (Ubuntu and Windows) in 12 steps

Python Development in Eclipse in (Ubuntu and Windows) in 12 steps

Step 1: Install Python.

Ubuntu: sudo apt-get install python

Windows: double click on python installer and follow the instructions. Download python from http://www.python.org/download/

Step 2: Download eclipse for ubuntu or windows from http://www.eclipse.org/downloads/ and extract it.

Step 3:

  1. Select Help-> Install New Software from eclipse menu.
  2. Add new resource from where Python Plug-in will be install in eclipse i.e. http://pydev.org/updates.
  3. After adding resource, a list of check box will be available. One PyDev and other PyDev MyLyn Integration. Select PyDev and click next.
  4. It’s starts downloading and after completion eclipse asks for restart it.
  5. Restart Eclipse

Step 4: Select ‘Windows-> Open Perspective -> other’ from eclipse menu. Select PyDev from Open Perspective windows list.

Step 5: Select ‘Window-> Preferences’ from eclipse menu. From left side panel of Preferences window select ‘PyDev-> Interpreter – Python’.

  1. Assign a name and path of installed Python by pressing New Button in Python Interpreters.
  2. In windows ‘c:\Python\Python.exe’ and in ubuntu ‘/usr/bin/python’.
  3. Press OK, the entire libraries path will be automatically set.
  4. Press ok, Now eclipse is ready for python development.

Step 6: Select ‘File-> New-> PyDev Project’ from eclipse menu to start a new python project.

Step 7:

Project Name=FirstPythonProject

Project Type=Python

Grammer Version = 2.6

Interpreter = Select Default or any other If u defined from combo box.

Click Finish

Step 8: Right Click at src folder of your FirstPythonProject in ‘PyDev Package Explorer’ pane and select ‘New->PyDev Module’.

Step 9: Assign the Name like pythonFile. A new file will be created in src folder having named pyhtonFile.py.

Step 10: Write a python statement like print “Hello” in pythonFile.py.

Step 11: Right click on pythonFile.py and select Run As -> Python Run.

Step 12: Hello will be print at console.

Categories: Eclipse, Python
  1. April 24, 2010 at 8:34 am

    Hey, nice post on how to install Python development plugin in Eclipse. This of course works for those who use Eclipse as their Java development platform and also hack Python.

    I will like to it in case someone asks about it on out Python Tutor mailing list.

    Nice post.

  2. April 24, 2010 at 6:30 pm

    Thanks Helen, I will submit at Python Tutor mail list. if you provide me tutor mailing list link.

  3. January 6, 2011 at 11:00 pm

    Help me please Mohsin and readers,
    I work in debian and amd64 hp laptop
    I test Eclipse Helios, eclipse 3.6, eclipse 3.6.1, updating pydev from eclipse, download directly pydev from oficial site in zip format and manual installation, but i dont get eclipse+pydev funcionaly. Like problems with versions or my computer arquitecture.
    Could say me wath version exactly are you using?

  4. January 6, 2011 at 11:08 pm

    I am using pydev 1.6.4

    • January 7, 2011 at 5:17 am

      @milton
      pydev ver 1.6.5
      elipse Helios
      python 2.6
      but brother its no matter, i have used pydev with other version of eclipse too. ts working fine.

  1. May 13, 2010 at 10:44 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: