Monday, December 10, 2012

Installing PyDev in Eclipse (Python IDE)




Programming Python is so much fun in Eclipse using the PyDev Plugin. If you've never programmed in an IDE (Integrated Development Environment) then your going to be pleasantly surprised. Eclipse is a good and powerful IDE that is meant to be a Java IDE. But it can be extended with plugins to support several other languages. Eclipse requires the Java Runtime Environment in order to run. The following screen shot is an example of the sort of error you get when you try to run Eclipse without first installing the JDK.


A Missing Java Runtime Engine (JRE) will prevent Eclipse running
Running Eclipse is simple. You just run the eclipse.exe executalbe and choose a workspace. 
You Then :
  • Choose Help
  • Click "Install New Software"
  • Click Add and in the location box type : http://pydev.org/updates
  • In the "Work With" text box at the top, type : PyDev and then select PyDev in the checkbox below.



Choose Help - > Install New Software -> Click Add, In the location box type http://pydev.org/updates. Type Pydev in the "Work with" box and select PyDev by clicking the checkbox

Agree to the license





After PyDev installs successfully you will be able to create PyDev Projects. Select 
Starting an new Python Project in PyDev

Your code won't run  before you configure an interpreter to run it.Auto config is an easy way to do so.
PyDev must be told where the python interpreter is on your computer. Fortunately PyDev can easily detect Python Interpreters using the Auto Config option 







More tutorials on the way. To show how PyDev works and how to use the debugger.


No comments:

Post a Comment