Python 安装 Eclipse 后 Pydev 透视图未显示

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

Pydev Perspective Not Showing After Install For Eclipse

pythoneclipsepydev

提问by crazyCoder

After installing the latest version of Pydev on eclipse it is not showing under the list of available perspectives.

在 Eclipse 上安装最新版本的 Pydev 后,它没有显示在可用透视图列表下。

Eclipse does however list pydev as being installed which seems weird to me. I would also like to add that I installed pydev through the standard method (Through the "install new software" option under help).

然而,Eclipse 确实将 pydev 列为已安装,这对我来说似乎很奇怪。我还想补充一点,我通过标准方法安装了 pydev(通过帮助下的“安装新软件”选项)。

Any help on how to resolve this would be greatly appreciated.

任何有关如何解决此问题的帮助将不胜感激。

采纳答案by nabster

I spent hours trying to get PyDev 3.0.0 plugin working with Eclipse Kepler on my mac. I tried

我花了几个小时试图让 PyDev 3.0.0 插件在我的 Mac 上与 Eclipse Kepler 一起工作。我试过

  1. Marketplace installation
  2. Install Software through Update Site
  3. Dropping plugin files under eclipse/dropins
  1. 市场安装
  2. 通过更新站点安装软件
  3. 在 eclipse/dropins 下删除插件文件

Nothing worked until I finally tried version 2.8.2 of the plugin. I would say get a zip of 2.8.2 from hereand put the unzippied version in your /dropins folder of Eclipse. Restart Eclipse. Then go to the preference menu and notice PyDev entry should be there. Sometime it is better to start the Eclipse with admin credentials. Something like this on command line:

在我最终尝试了插件的 2.8.2 版之前,一切都没有奏效。我会说从这里获取 2.8.2 的 zip并将解压缩的版本放在 Eclipse 的 /dropins 文件夹中。重新启动 Eclipse。然后转到首选项菜单并注意 PyDev 条目应该在那里。有时最好使用管理员凭据启动 Eclipse。在命令行上是这样的:

sudo /Users/username/Softwares/eclipse/Eclipse.app/Contents/MacOS/eclipse

回答by romanows

I had the same problem; it seems I was using Eclipse with Java 1.6 instead of with Java 1.7 as required by PyDev.

我有同样的问题; 似乎我使用 Eclipse 和 Java 1.6 而不是 PyDev 要求的 Java 1.7。

The fix, for PyDev 3.1.0 on Linux at least, is to start Eclipse with the Java 1.7 binary. Two ways to do this: updating the default Java installation for the system to 1.7 or edit the eclipse.ini to point to a Java 1.7 java binary.

至少对于 Linux 上的 PyDev 3.1.0,修复方法是使用 Java 1.7 二进制文件启动 Eclipse。有两种方法可以做到这一点:将系统的默认 Java 安装更新为 1.7 或编辑 eclipse.ini 以指向 Java 1.7 java 二进制文件。

回答by Mukesh

  1. Update your Java to the latest SDK.
  2. Restart Eclipse.
  1. 将您的 Java 更新到最新的 SDK。
  2. 重新启动 Eclipse。

PyDev will be shown in Eclipse>>Preferences

PyDev 将显示在 Eclipse>>Preferences

回答by Gopi

For Ubuntu users:

对于 Ubuntu 用户:

Check for Java version ($ java -version). If it is 1.6.0, please upgrade it to 1.7.0 ($ sudo apt-get install openjdk-7-jdk)

检查 Java 版本 ( $ java -version)。如果是1.6.0,请升级到1.7.0 ( $ sudo apt-get install openjdk-7-jdk)

Also, run the command $ sudo update-alternatives --config java

另外,运行命令 $ sudo update-alternatives --config java

Restart Eclipse and Pydev will show up in the preferences.

重新启动 Eclipse,Pydev 将显示在首选项中。

回答by Omar Trejo

The PyDev installation guideaddresses this issue. The solution is to update to Java 7 or later.

PyDev的安装指南解决了这个问题。解决方案是更新到 Java 7 或更高版本。

Edit: As @aaron-hall suggested, I'll give a more detailed explanation:

编辑:正如@a​​aron-hall 所建议的,我将给出更详细的解释:

The nice folks that develop PyDev have decided to upgrade the Java version they are using (wise decision, but breaks compatibility backwards). If you have Java 6, then you need to upgrade at least to 7 (you can find numerous sites explaining how to do it in case you don't know). After you have installed the new version of Java, inside Eclipse go to Preferences/Java/Installed JREs and add your recently installed JRE. After that, restart Eclipse and install PyDev as you normally would. Everything should work fine now.

开发 PyDev 的好人决定升级他们正在使用的 Java 版本(明智的决定,但向后破坏了兼容性)。如果您有 Java 6,那么您至少需要升级到 7(如果您不知道,您可以找到许多解释如何操作的站点)。安装新版本的 Java 后,在 Eclipse 中转到 Preferences/Java/Installed JREs 并添加最近安装的 JRE。之后,重新启动 Eclipse 并像往常一样安装 PyDev。现在一切正常。

If for some reason you can't or won't install Java 7 or 8, then you must stick to PyDev 2.8.x.

如果由于某种原因您不能或不会安装 Java 7 或 8,那么您必须坚持使用 PyDev 2.8.x。

回答by Mad Physicist

My solution was to run eclipsefrom the command line with the -cleanflag:

我的解决方案是eclipse从带有-clean标志的命令行运行:

eclipse -clean

This has to be done once in a while around package upgrades.

这必须在包升级周围偶尔完成。

回答by tonydeck

in my case, you need to use jdk 1.8, if the pydev is 5.0.0.

就我而言,如果 pydev 是 5.0.0,则您需要使用 jdk 1.8。

回答by Bruno Bossola

As per PyDev documentation states, the latest 5.x version now requires Java8 and Eclipse 4.5 onwards (http://www.pydev.org/)

根据 PyDev 文档所述,最新的 5.x 版本现在需要 Java8 和 Eclipse 4.5 以上(http://www.pydev.org/

You can use a 4.x PyDev version, which requires Java7, using the alternative update sites (http://www.pydev.org/update_sites/index.html)

您可以使用 4.x PyDev 版本,它需要 Java7,使用替代更新站点 ( http://www.pydev.org/update_sites/index.html)

回答by bruno

I went through all the above steps, but it didn't work. At last, I saw that my launcher pointed to a wrong Java installation. It was:

我完成了上述所有步骤,但没有奏效。最后,我看到我的启动器指向了错误的 Java 安装。它是:

   eclipse -vm /usr/local/java/jre1.7.0_67/bin/java

then I corrected to the java installation appropriate for my case, as stated in the previous answers, and it works:

然后我更正了适合我的情况的 java 安装,如前面的答案中所述,并且它有效:

   eclipse -vm /usr/lib/jvm/java-8-openjdk-i386/bin/java

Of course these are my installation dependent paths. You should check your owns.

当然这些是我的安装依赖路径。你应该检查你自己的。

回答by Mukthi Nath

There are a few things that has to be checked when installing pydev from install new software on eclipse.

在 Eclipse 上通过安装新软件安装 pydev 时,必须检查一些事项。

  1. Version of eclipse
  2. Version of java
  1. 日食的版本
  2. java的版本

If you are using java 7 and still you cant find pydev under preferences(that happened to me), there is a good chance that you have installed a version of pydev which is above 4.5.5. PyDev 4.5.5 is the last release supporting Java 7 and Eclipse 3.8. For more details, go through this link http://www.pydev.org/under release 5.2.0. Like wise for java 6, an older version of pydev will help solve the issue, and there are a lot of sites which will find your right version of pydev according to your eclipse and java version Cheers

如果您使用的是 java 7 并且仍然无法在首选项下找到 pydev(这发生在我身上),那么您很有可能已经安装了 4.5.5 以上的 pydev 版本。PyDev 4.5.5 是最后一个支持 Java 7 和 Eclipse 3.8 的版本。有关更多详细信息,请访问5.2.0 版下的此链接http://www.pydev.org/。与 java 6 一样,旧版本的 pydev 将有助于解决该问题,并且有很多站点会根据您的 eclipse 和 java 版本找到您正确版本的 pydev