:orphan:

=================
Eclipse and PyDev
=================

.. note::

    This page is no longer maintained, and may be out of date.

`Eclipse <http://www.eclipse.org/downloads/>`_ is an open-source
platform that provides an array of convenient and powerful
code-editing and debugging tools.
`PyDev <http://pydev.org/>`_ is a Python IDE that runs on top of Eclipse.

.. note::

   These instructions refer to Anaconda Distribution exclusively, but will also work with Miniconda.


If you do not already have Eclipse and PyDev installed:

* `Download Eclipse <http://www.eclipse.org/downloads/>`_ and read the `Eclipse resources <http://www.eclipse.org/resources/>`_.
* You may need to install the latest `Java JDK/JRE <http://www.oracle.com/technetwork/java/javase/downloads/index.html>`_
  before installing PyDev in order for PyDev to show up in
  the Eclipse Preferences menu after PyDev installation.
* `Install PyDev <http://pydev.org/manual_101_install.html>`_.

After you have Eclipse, PyDev, and Anaconda installed, set Anaconda Python
as your default:

#. Open the Eclipse Preferences window:

   .. thumbnail:: /img/Eclipse1.png
      :align: center

#. In the PyDev list, select Interpreters, and then select Python Interpreter.

#. Click the Browse for python/pypy exe button:

   .. thumbnail:: ../img/Python-interpreter.png
      :align: center

#. In the Interpreter Name box, type ``Anaconda Python``.

#. Browse to your :doc:`Anaconda Python interpreter path <python-path>`.
   The interpreter you choose is related to your environment, so Eclipse
   will have access to all of the packages in that environment. To add
   new packages, you may need to ``conda install package-name``
   in your Anaconda Prompt or terminal.

#. Click the OK button:

   .. thumbnail:: /img/Eclipse3.png
      :align: center

#. In the next window, select the folders to add to the SYSTEM Python path:

   a. Select all the folders:

      .. thumbnail:: /img/Eclipse4.png
         :align: center

   b. Click the OK button.

      The Python Interpreters window now displays Anaconda Python:

      .. thumbnail:: ../img/Eclipse-interpreter.png
         :align: center

   c. Click the Apply and Close button.

You are now ready to use Anaconda Python with your Eclipse and PyDev
installation.