Python Programming/Setting it up

From Wikibooks, open books for an open world
Jump to: navigation, search

There are several IDEs available for Python. A full list can be found on the Python wiki.

Installing Python PyDEV Plug-in for Eclipse IDE[edit]

You can use the Eclipse IDE as your Python IDE. The only requirement is Eclipse and the Eclipse PyDEV Plug-in.

Go to http://www.eclipse.org/downloads/ and get the proper Eclipse IDE version for your OS platform. There are also updates on the site, but just look for the basic program, Download and install it. The install just requires you to unpack the downloaded Eclipse install file onto your system.

You can install PyDEV Plug-in two ways:

  • Suggested: Use Eclipse's update manager, found in the tool bar under "Help" -> "install new Software". add http://pydev.org/updates/ in "work with" click add, and select PyDEV ,and click "Next" and let Eclipse do the rest. Eclipse will now check for any updates to PyDEV when it searches for updates.
    • If you get an error stating a requirement for the plugin "org.eclipse.mylyn", expand the PyDEV tree, and deselect the optional mylyn components.
  • Or install PyDEV manually, by going to http://pydev.sourceforge.net and get the latest PyDEV Plug-in version. Download it, and install it by unpacking it into the Eclipse base folder.

Python Mode for Emacs[edit]

There is also a python mode for Emacs which provides features such as running pieces of code, and changing the tab level for blocks. You can download the mode at https://launchpad.net/python-mode

Installing new modules[edit]

Although many applications and modules have searchable webpages, there is a central repository for searching packages for installation, known as the "Cheese Shop".

See Also[edit]