简体   繁体   中英

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 )

在此处输入图片说明

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.

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.

设置python解释器位置

In my windows system python executable installed path is C:\\tools\\python2\\python.exe.

as mentioned above Go to eclipse Window -> Preferences -> PyDev -> Interpreters and click on "Python Interpreter" and pointed the python executable path.

非常感谢,我用您的帖子解决了我的问题,深表感谢。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM