This article notes steps to install PyDev in Eclipse on Ubuntu 14.04 LTS.
$ java -version $ sudo apt-get install default-jdk
Install Eclispe CDT
Download Eclispe IDE for C/C++ from Eclipse and extract it in
$ sudo tar -xvf eclipse-standard-kepler-SR2-linux-gtk-x86_64.tar.gz
The command may need to use the correct package name, i.e.
After extracting, an
eclipse folder will be created in
$HOME. Run Eclispe as following
$ cd $HOME/eclispe $ eclipse
Create a separate folder in
$HOME, for example PythonforKids, to keep all the files. This will be the Eclipse workspace for playing with Python.
PyDev is a Python plugin for Eclispe. The plugin can be installed from the Eclispe marketplace, see details in here.
- Run Eclipse and select Help > Install New Software….
- Add a new site for PyDev, for example http://pydev.org/updates.
- Select PyDev and let Eclipse install the plugin.
The next step is to configure Eclipse to work with Python 2 or 3, which are all available in Ubuntu 14.04.
Create a new PyDev project in Eclipse, File > New > PyDev Project, and select Advanced configuration.
The Python interpreter can be changed in Window > Preference, select PyDev > Interpreters > Python Interpreter. Both Python 2 and Python 3 are available, select it by moving up/down in the list.
An alternative method to configure the interpreter is using the project properties, right click on the project name and select Properties.
In case of playing with Python 3, one may also need to install
$ sudo apt-get install python3-tk
This graphic library is already installed for Python 2
and use it as follows