Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse, PyDev "Project interpreter not specified”

I have installed PyDev in eclipse Luna. After successful installation of PyDev, when I want to create a new project I get the error: Project interpreter not specified

How can I fix it? There is no option for interpreter to choose from.

eclipse version Luna, Mac OSX Yosemite, PyDev latest version (installed according to http://pydev.org/manual_101_install.html)

enter image description here

like image 947
apadana Avatar asked Jun 22 '15 00:06

apadana


People also ask

Can t find python interpreter in eclipse?

Go to Window -> Preferences -> PyDev -> Interpreters and click on "Python Interpreter". Then click on new button and add python executable location.

How do I run code in PyDev?

Go to the menu: Alt + R + S + The number of the Run you wish (It can be Python, Jython, unit-test, etc). Note: if you were using unit-tests, you could use: Ctrl+F9 to run the unit-tests from the module (and even selecting which tests should be run -- and if Shift is pressed it's launched in debug mode).


2 Answers

In my case it has worked with following steps

Prerequisite: Python should be installed

  1. Go to Window -> Preferences -> PyDev -> Interpreters and click on "Python Interpreter".
  2. Then click on new button and add python executable location.

Example for windows:

c:\python2.7\python.exe

example for ubuntu:

/usr/bin/python
  1. Then you can attached image and click on finish.

It should work.

like image 96
ramesh bommakanti Avatar answered Oct 18 '22 01:10

ramesh bommakanti


On my Mac 10.11.3, using LiClipse 2.5.3 I solved it with these steps:

Open a terminal window and type which python

In my case it replied with /usr/bin/python

Calling python it informed me I was using version 2.7.10.

Next I called LiClipse and went LiClipse -> Preferences -> PyDev -> Interpreters -> Python Interpreter -> New

For "Interpreter Name" I used "Python 2.7.10", although I am aware that is just a sym link and it could be updated any time. For "Interpreter Executable" I entered "/usr/bin/python"

Then "Ok"

After that, the error message went away.

setting python interpreter location

like image 26
Alexandre Santos Avatar answered Oct 18 '22 00:10

Alexandre Santos