Monday, December 28, 2009

Integrate Pydev in Eclipse for Ubuntu

1) find and download Pydev (.tar) file


2) unpack it


3)Setting up a python interpreter

    i) Windows > Preferences:



   ii)Find Pydev on the left hand side and select Interpreter - Python.
 
   iii)Click the New button on the right hand side and pick your python version, usually installed to /usr/bin/python<version #>:



iv)It should load several python libraries and populate the PYTHONPATH. Click OK to save this as your interpreter.

4) Setting up a python project

  i) Run -> run configurations


              
 ii)Click on the ‘new’ icon above “type filter text” and select the interpreted we just added in preferences.



                    
 iii)Add the project to this configuration and give it a name:



 iv)Click Run


Pydev works well for mid size projects or bigger.  I usually use Idle for smaller programs or ones that I will use only once and switch to eclipse when the project is bigger than Idle’s window.

No comments:

Post a Comment