Eclipse,PyDev“文件系统中不存在解释器”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19889468/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:19:51  来源:igfitidea点击:

Eclipse, PyDev "interpreter does not exist in filesystem"

pythoneclipsepydevinterpreter

提问by voiDnyx

I recently wanted to start programming with python and therefore set up my eclipse with PyDev. Now, i followed the step-by-step Tutorial at

我最近想开始用 python 编程,因此用 PyDev 设置了我的 eclipse。现在,我按照分步教程在

http://pydev.org/manual_101_interpreter.htm

http://pydev.org/manual_101_interpreter.htm

l but when i create my first PyDev Project i get the error:

但是当我创建第一个 PyDev 项目时出现错误:

"The interpreter configured does not exist in the filesystem: python"

“文件系统中不存在配置的解释器:python”

I am using Eclipse 4.3, Python 2.7 and I installed PyDev via the eclipse 'Install new software' option. I did not configure any Jython/IronPython interpreters and the following is how my python-interpreter preferences look like:

我正在使用 Eclipse 4.3、Python 2.7,并通过 Eclipse 的“安装新软件”选项安装了 PyDev。我没有配置任何 Jython/IronPython 解释器,以下是我的 python 解释器首选项的样子:

enter image description here

enter image description here

Any help would be appreciated :)

任何帮助,将不胜感激 :)

回答by Fabio Zadrozny

This is an introduced bug as part of the latest changes done in PyDev interpreter (it should work even without a full path -- please create a new issue at the PyDev tracker: https://sw-brainwy.rhcloud.com/tracker/PyDev/with the error you get when running).

这是作为 PyDev 解释器中最新更改的一部分引入的错误(即使没有完整路径,它也应该可以工作——请在 PyDev 跟踪器上创建一个新问题:https: //sw-brainwy.rhcloud.com/tracker/ PyDev/运行时出现错误)。

回答by Rohit Katta

I got the same issue after installing python. Here are my findings and solution for it:

安装python后我遇到了同样的问题。这是我的发现和解决方案:

Findings: This issue occurs when pydev was not able to locate python interpreter.

结果:当 pydev 无法找到 python 解释器时会出现此问题。

Solution: Configure the python path. Steps:

解决方法:配置python路径。脚步:

Launch Eclipse -> Click on Windows -> Preferences -> PyDev -> Interpreters -> Python Interpreter -> Then browse and change the python interpreter path. Check below screen for this.

启动 Eclipse -> 点击 Windows -> Preferences -> PyDev -> Interpreters -> Python Interpreter -> 然后浏览并更改 python 解释器路径。检查下面的屏幕。

NOTE: While installing python, we get a window where we get to see the path where python would be installed. So we can copy the same path here.

注意:在安装 python 时,我们会看到一个窗口,我们可以在其中看到安装 python 的路径。所以我们可以在这里复制相同的路径。

enter image description here

enter image description here

enter image description here

enter image description here