Skip to content

Set up Eclipse (PyDev) to use Anaconda with Python 2.7 and 3.x

Hideki Ikeda edited this page Apr 16, 2016 · 1 revision

Prerequisite

  • PyDev is already installed on Eclipse
  • Anaconda is installed with Python 2.7
  • Python 3.x env is also installed on Anaconda

Configure python interpreters

  1. Choose Preferences from the Window menu
    The Preferences dialog box comes up.
  2. Select PyDev - Interpreters - Python Interpreter in the left pane.
  3. Click the New... button.
    the Select Interpreter dialog box comes up.
  4. In the Interpreter Name field, enter whatever you like for python 2.7
    ex) anaconda 2
  5. In the Interpreter Executable field, enter the path to the python 2.7 executable
    ex) /home/hideki/anaconda/bin/python
  6. Hit the OK button.
    Make sure the interpreter name appears.
  7. Click the New... button again.
  8. In the Interpreter Name field, enter whatever you like for python 3.5
    ex) anaconda 3
  9. In the Interpreter Executable field, enter the path to the python 3.5 executable
    ex) /home/hideki/anaconda/envs/py35/bin/python
  10. Hit the OK button.
  11. Hit the OK button on the Preference dialog box.