eclipse Kepler 和 Mac OS 的 PyDev 安装问题

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19838294/
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:04  来源:igfitidea点击:

PyDev installation problems with Kepler and Mac OS

eclipsemacoseclipse-pluginpydev

提问by Thomas Becker

I have Eclipse (Kepler) installed on OS X and updated recently to Maverick. Since then I didn't start Eclipse. Yesterday I did and it told me that there are update available. I installed them, with the result that Eclipse didn't remember to have a perspective for PyDev.

我在 OS X 上安装了 Eclipse (Kepler),最近更新到了 Maverick。从那时起我就没有启动 Eclipse。昨天我做了,它告诉我有可用的更新。我安装了它们,结果 Eclipse 不记得有 PyDev 的透视图。

I uninstalled PyDev, reinstalled it and since then it doesn't even appear in the preferences. I can uninstall it again, meaning Eclipse knows it is there, but there is simply no way to configure it.

我卸载了 PyDev,重新安装了它,从那时起它甚至没有出现在首选项中。我可以再次卸载它,这意味着 Eclipse 知道它在那里,但根本无法配置它。

Today I trashed the whole Eclipse, downloaded a fresh one and installed PyDev via the update site... Same story!

今天我删除了整个 Eclipse,下载了一个新的,并通过更新站点安装了 PyDev……同样的故事!

Has anybody the same problem on OS X?

有人在 OS X 上有同样的问题吗?

Cheers, Tom

干杯,汤姆

回答by Gerry Kuhn

I've seen this on Windows 7, after a recent update to Eclipse Kepler and PyDev 3.0.x. The PyDev site states that the latest PyDev requires Java 7. If you don't have Java 7, use PyDev 2. (http://pydev.org/, under the "Release 3.0" title"). I'm using Java 6 to launch Eclipse.

在最近更新了 Eclipse Kepler 和 PyDev 3.0.x 之后,我在 Windows 7 上看到了这个。PyDev 站点声明最新的 PyDev 需要 Java 7。如果您没有 Java 7,请使用 PyDev 2。(http://pydev.org/,在“Release 3.0”标题下)。我正在使用 Java 6 启动 Eclipse。

I would check the versions of Java and PyDev you're running.

我会检查您正在运行的 Java 和 PyDev 的版本。

回答by indivisible

Not enough rep to comment on Gerry Kuhn's answer so I'll make a new one.

没有足够的代表来评论 Gerry Kuhn 的回答,所以我会做一个新的。

You can install java7 but retain your current version and not affect your current set up by specifying which JVM Eclipse should use using the command line -vm option.

您可以通过使用命令行 -vm 选项指定应该使用哪个 JVM Eclipse 来安装 java7 但保留您当前的版本并且不影响您当前的设置。

All is explained here

一切都在这里解释

回答by Ted Xu

Same problem on my Mac here with

我的 Mac 上有同样的问题

Eclipse Version: Kepler Service Release 1 PyDev 3.0.0.201311051910 org.python.pydev.feature.feature.group

Eclipse 版本:Kepler Service Release 1 PyDev 3.0.0.201311051910 org.python.pydev.feature.feature.group

solved by using 2.x version just download zip hereand extracted folder in the dropin directory and restart is ok now Thanks

通过使用 2.x 版本解决,只需在此处下载 zip并在 dropin 目录中提取文件夹,然后重新启动即可,谢谢

回答by PyiSoeMaw

I solved this problem by changing the eclipse.ini file. I changed from this value

我通过更改 eclipse.ini 文件解决了这个问题。我从这个值改变了

-vmargs -Dosgi.requiredJavaVersion=1.6

-vmargs -Dosgi.requiredJavaVersion=1。6

to this value.

到这个值。

-vmargs -Dosgi.requiredJavaVersion=1.7

-vmargs -Dosgi.requiredJavaVersion=1。7

But of course you must have jdk 7 installed previously.

但是当然你之前必须安装了 jdk 7。