简体   繁体   English

使用 Pydev 在 eclipse 中创建 python 项目失败,为什么?

[英]Create python project in eclipse with Pydev fails, why?

Error: The selected wizard could not be started.错误:所选向导无法启动。

Plug-in org.python.pydev was unable to load class org.python.pydev.ui.wizards.project.PythonProjectWizard. An error occurred while automatically activating bundle org.python.pydev (547).

在此处输入图像描述

This error occurs as a result of installing the wrong version of PyDev for the version of Eclipse that you're using (found a hint on SO here ).发生此错误的原因是为您正在使用的 Eclipse 版本安装了错误版本的 PyDev(在此处找到有关 SO 的提示)。

For example, I ( Edit : used to ) use Eclipse Luna (Service Release 2, v4.4.2).例如,我(编辑:曾经)使用 Eclipse Luna(Service Release 2,v4.4.2)。 I tend to lose my plugins / settings every time I update Eclipse on a Mac, and I'm too lazy to look into why, so I've avoided updating.每次我在 Mac 上更新 Eclipse 时,我往往会丢失我的插件/设置,而且我懒得研究原因,所以我避免了更新。 Which is how I ran into the problem you describe here.这就是我遇到您在此处描述的问题的方式。

The version of PyDev available in the Eclipse Marketplace is, as of this writing, 6.5.something.在撰写本文时, Eclipse Marketplace 中可用的 PyDev 版本为 6.5.something。 You'd think Eclipse would be smart enough not to allow incompatible plugins to be installed with the Marketplace installer, but nope.您可能认为 Eclipse 足够聪明,不会允许不兼容的插件与 Marketplace 安装程序一起安装,但不是。

Look here for an idea of which version of PyDev you need to work with your version of Eclipse (check the "About" box within Eclipse), then follow the instructions here to download the appropriate.zip from SourceForge , extract it, and move the extracted files into the dropins directory, preserving the hierarchy that existing inside the archive.在这里查看您需要使用哪个版本的 PyDev 来了解您的 Eclipse 版本(选中 Eclipse 中的“关于”框),然后按照此处的说明从 SourceForge下载适当的 .zip,解压缩,然后移动将文件提取到dropins目录中,保留存档中存在的层次结构。

For Eclipse Luna (4.4), I found that PyDev 5.2.0 seems to work fine (so far).对于 Eclipse Luna (4.4),我发现PyDev 5.2.0似乎工作正常(到目前为止)。

Note that the location of the dropins folder may vary by operating system.请注意, dropins文件夹的位置可能因操作系统而异。 Once upon a time, I bookmarked this reference (for Luna) from the Eclipse help, and it may be useful somehow.曾几何时,我从 Eclipse 帮助中为这个参考(用于 Luna)添加了书签,它可能以某种方式有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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