Introduction
PyDev is a free Python Editor based on Eclipse. See http://www.pydev.org/.
Prerequisite
- Install Python - Download Python.
- Install Java 8 - Download Java SE.
- Download Eclipse 4.6 (Neon) - Download Eclipse 4.6 (Neon).
After installing Python and Java, unzip Eclipse zip file to a new directory.
Installation PyDev
Click Help > Install New Software... and enter select PyDev for Eclipse.
Then Next, Accept License Agreement, Finish and when requested to Restart, restart.
Configuration PyDev
Click Window > Preferences > PyDev > Interpreter and set python home.
Test PyDev
Click File > New > Project > PyDev > PyDev project and fillout.
Then create a new Python Module. First select your new python project then File > New > Other and select Python Module.
Then enter a Name for the class and optionally a package name.
Finally select Module Main
Write some simple code
if __name__ == '__main__':
print("Hello World!")
Then to run press Ctrl + F11 or from the menu Run > Run.
Happy Python coding!
No comments:
Post a Comment