PyDev 没有出现在 Eclipse 中

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

PyDev not showing up in Eclipse

eclipsemacospydev

提问by Matt

I just installed Eclipse Kepler(after an issue with a faulty update in Juno) and tried to install PyDev using the Install New Softwareoption in Eclipse. Basically just following memory/online tutorials. After installing I can't see it in my Preferencespane. Any ideas why that might be so?

我刚刚安装了 Eclipse Kepler(在 Juno 中出现错误更新问题之后)并尝试使用Install New SoftwareEclipse 中的选项安装 PyDev 。基本上只是遵循内存/在线教程。安装后,我在Preferences窗格中看不到它。任何想法为什么会这样?

Thanks.

谢谢。

Yes, I have Java 7 installed.

是的,我安装了 Java 7

UPDATE: A lot of users have suggested numerous solutions to this problem. There may be more than one correctanswer below. See what helps you...

更新:很多用户已经针对这个问题提出了多种解决方案。下面可能有不止一个正确答案。看看对你有什么帮助...

回答by Mohammed Lokhandwala

Too much!

太多了!

After wasting 4 hours trying to install PyDev 3, I moved back to 2.8.2 and used the drop in technique instead of Add new software and it now works!

在尝试安装 PyDev 3 浪费了 4 个小时之后,我回到了 2.8.2 并使用了 drop in 技术而不是添加新软件,现在它可以工作了!

Download 2.8.2 from sourceforge http://sourceforge.net/projects/pydev/files/pydev/

从 sourceforge http://sourceforge.net/projects/pydev/files/pydev/下载 2.8.2

Uninstall PyDev. Simply unzip the contents into the dropins folder below eclipse. Restart eclipse.

卸载 PyDev。只需将内容解压缩到 eclipse 下的 dropins 文件夹中即可。重启日食。

回答by agtoever

After struggling with this problem for some days I wanted to share my solution to the problem - inspired by the above posts (kudo's to them).

在为这个问题苦苦挣扎了几天之后,我想分享我对这个问题的解决方案 - 受到上述帖子的启发(对他们的敬意)。

My Configuration:

我的配置:

  • MacBook Air (intel) with OS X 10.9
  • Eclipse: Kepler SR1 installed (zip file extracted in the Applications folder)
  • 配备 OS X 10.9 的 MacBook Air(英特尔)
  • Eclipse:安装了 Kepler SR1(在 Applications 文件夹中提取的 zip 文件)

My situation:

我的情况:

Tried to install PyDev via Eclipse Help--> Install new software...Installation was succesfull, but PyDev didn't show up anywhere in Eclipse.

尝试通过 Eclipse 安装 PyDev Help-->Install new software...安装成功,但 PyDev 没有出现在 Eclipse 中的任何地方。

My solution:

我的解决方案:

  • In Eclipse go to Help--> Install new software...
  • Uncheck"Show only the latest versions of available software"
  • Select PyDev the usual way, but install the latest 2.x versioninstead of the 3.x version
  • 在 Eclipse 中转到Help-->Install new software...
  • 取消选中Show only the latest versions of available software
  • 按照通常的方式选择 PyDev,但安装最新的 2.x 版本而不是 3.x 版本

Apparently PyDev 3.0 does not work with the default OS X configuration of Eclipse, Java and Python (don't exactly know why, though...)

显然 PyDev 3.0 不适用于 Eclipse、Java 和 Python 的默认 OS X 配置(虽然不知道为什么......)

回答by braineo

I just figured it out. You will need JDK rather than a JRE.

我只是想通了。您将需要 JDK 而不是 JRE。

  1. Download it here first:JDK Download

  2. Install it.

  3. Explore /Applications/eclipse/Eclipse.app/Contents/MacOS (where you put your Eclipse)

  4. Open eclipse.ini

  5. add

    -vm
    /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/java
    
  1. 先在这里下载JDK下载

  2. 安装它。

  3. 探索 /Applications/eclipse/Eclipse.app/Contents/MacOS(放置 Eclipse 的地方)

  4. 打开 eclipse.ini

  5. 添加

    -vm
    /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/java
    

You will change the version according to your situation. Enjoy!

您将根据您的情况更改版本。享受!

回答by FSp

It happened to me too, but using Debian stable (wheezy, in my case).

它也发生在我身上,但使用的是 Debian 稳定版(就我而言,喘不过气来)。

I solved installing doing:

我解决了安装:

# apt-get install openjdk-7-jdk

After this, I checked that I had two alternatives of Java JDK:

在此之后,我检查了我是否有两种 Java JDK 替代方案:

# update-java-alternatives -l

And the output was:

输出是:

java-1.6.0-openjdk-amd64 1061 /usr/lib/jvm/java-1.6.0-openjdk-amd64
java-1.7.0-openjdk-amd64 1051 /usr/lib/jvm/java-1.7.0-openjdk-amd64

Finally, I did:

最后,我做到了:

# update-java-alternatives -s java-1.7.0-openjdk-amd64

After that, I removed pydev plugin from Eclipse, reboot Eclipse, install pydev (using Marketplace), reboot Eclipse, and now it works.

之后,我从 Eclipse 中删除了 pydev 插件,重新启动 Eclipse,安装 pydev(使用 Marketplace),重新启动 Eclipse,现在它可以工作了。

Credits: http://vas.davimas.name/2013/07/switching-between-openjdk-v6-and-v7-in.htmland Richard's answer, above

积分:http: //vas.davimas.name/2013/07/switching-between-openjdk-v6-and-v7-in.html和 Richard 的回答,上面

回答by Richard

Most likely you do not have java 7 or > eclipse 3.7 installed on your machine it is a requirement of pyDev 3 see here http://pydev.blogspot.co.uk/2013/11/pydev-30.html

您的机器上很可能没有安装 java 7 或 > eclipse 3.7,这是 pyDev 3 的要求,请参见此处http://pydev.blogspot.co.uk/2013/11/pydev-30.html

回答by PartialData

How I was able to get pydev to work in mac/eclipse is download the latest JDK as mention 100 times above install it and then do the following.

我如何让 pydev 在 mac/eclipse 中工作是下载最新的 JDK,如上所述安装它 100 次,然后执行以下操作。

  1. open eclipse choose preferences > java > installed JREs
  2. click on "Search..." button it will auto populate the JDK 1.7 you just installed
  3. Click ok
  4. have a beer!
  1. 打开 Eclipse 选择首选项 > java > 已安装的 JRE
  2. 单击“搜索...”按钮,它将自动填充您刚刚安装的 JDK 1.7
  3. 单击确定
  4. 喝啤酒!

-Cheers!

-干杯!

回答by dpodbori

The PyDev.org website states (http://pydev.org/manual_101_install.html) --

PyDev.org 网站声明 ( http://pydev.org/manual_101_install.html) --

"""
Important requisite

PyDev now requires java 7 in order to run. If you don't have java 7, the update 
process  may appear to succeed, but PyDev will simply not show in the target
installation. Please double-check if you're using a java 7 vm in 
about > installation details > configuration 
before trying to install PyDev.
"""

This problem started to appear in my Eclipse after I removed the Java 7 runtime from my system (because the Java code I am building needs to run on an older version of Java, but that's unrelated). After I realized that I had lost PyDev, I reinstalled Java 7 and PyDev is working fine now.

在我从系统中删除 Java 7 运行时后,这个问题开始出现在我的 Eclipse 中(因为我正在构建的 Java 代码需要在旧版本的 Java 上运行,但这无关紧要)。在我意识到我丢失了 PyDev 之后,我重新安装了 Java 7,现在 PyDev 工作正常。

Another option would be to rollback to the previous version of PyDev that does not require Java 7, but it would require a manual installation of PyDev and I would lose the convenience of automated updates. The best way forward, it seems, to run run Eclipse on Java 7 and switch those Java projects that need to depend explicitly on Java 6 to that JDK/JRE.

另一种选择是回滚到不需要 Java 7 的先前版本的 PyDev,但这需要手动安装 PyDev,我将失去自动更新的便利性。最好的方法似乎是在 Java 7 上运行 Eclipse,并将那些需要明确依赖 Java 6 的 Java 项目切换到该 JDK/JRE。

回答by ChickenFeet

Solved.

解决了。

OSX Mavericks 10.9, Eclipse Keplar 4.3.2, PyDev 3.4

OSX Mavericks 10.9、Eclipse Keplar 4.3.2、PyDev 3.4

Problem: PyDev not showing up under Ecplise > preferences

问题:PyDev 未显示在 Ecplise > 首选项下

Solution: Download, install and point Ecplise to JDK 1.7

解决方案:下载、安装 Ecplise 并将其指向 JDK 1.7

  1. Unistall PyDev
  2. Under Eclipse > preferences > Installed JREs you probably only see Java SE 6
  3. Download and install JDK 1.7 from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
  4. open terminal and run "/usr/libexec/java_home -v 1.7"

    this will return the directory in which JDK 1.7 reside, something like /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home

  5. Under Eclipse > preferences > Installed JREs click "add", select "MacOS X VM", click "next"

  6. in JRE Home paste your version of /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home, give it a name and click "Finish"
  7. Restart Eclipse and re-install PyDev.
  1. 卸载 PyDev
  2. 在 Eclipse > 首选项 > 已安装的 JRE 下,您可能只看到 Java SE 6
  3. http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html下载并安装 JDK 1.7
  4. 打开终端并运行“/usr/libexec/java_home -v 1.7”

    这将返回 JDK 1.7 所在的目录,例如 /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home

  5. 在 Eclipse > 首选项 > 已安装的 JRE 下单击“添加”,选择“MacOS X VM”,单击“下一步”

  6. 在 JRE Home 中粘贴您的 /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home 版本,为其命名并单击“完成”
  7. 重新启动 Eclipse 并重新安装 PyDev。

Voila!

瞧!

回答by jaoki

I had the same issue on Luna and found my mistake.

我在 Luna 上遇到了同样的问题,并发现了我的错误。

After checking the author in "Do you trust these certificates?" page, and I was able to successfully install pydev.

在“您信任这些证书吗?”中检查作者后。页面,我能够成功安装 pydev。

The page lets you proceed without checking it, and no error occurs and it was where I totally missed. Maybe it is useful for someone.

该页面让您无需检查即可继续操作,并且不会发生任何错误,这是我完全错过的地方。也许它对某人有用。

回答by TJY-LoveCoding

Aha , It is solved just now.I show it in the following.

啊哈,刚才已经解决了,下面我展示一下。

First, I use MyEclipsewith jdk1.8,maybe some people dont know that Eclipse (or MyEclipse) has its own jvm, what is not "jdk" you downloaded and installed and the "built-in jvm" is default. You can check this out by clicking like this " Windows-->preferences-->Java-->Installed JREs" And I found my MyEclipse used the default jdk1.6 .Then I click "add" to build pathof my installed jdk1.8 .

首先,我使用MyEclipse和jdk1.8,可能有些人不知道Eclipse(或MyEclipse) 有自己的jvm,你下载安装的不是“jdk”,“内置jvm”是默认的。你可以通过点击这样的“Windows-->preferences-->Java-->Installed JREs”来检查这个我发现我的MyEclipse使用了默认的jdk1.6。然后我点击“添加”来构建我安装的jdk1的路径.8 .

Second, I opened the configuration file named "myeclipse.ini"and check this in the following.

其次,我打开了名为“myeclipse.ini”的配置文件,并在下面进行了检查。

binary/com.sun.java.jdk.win32.x86_64_1.6.0.u43/bin/javaw.exe

binary/com.sun.java.jdk.win32.x86_64_1.6.0.u43/bin/javaw.exe

Third, I replaced it with new path. Check the following out. It is new path.

第三,我用新路径替换了它。检查以下内容。这是一条新路。

D:/jdk/java/jdk1.8/bin/javaw.exe

Last, restartit .And you can find "PyDev" in "Preference".

最后重新启动它。您可以在“首选项”中找到“PyDev”。

Happy Coding with Python!

用 Python 编码快乐!

PS:Pycharm is good,and you can get it for free if you are a student or a teacher. click here

PS:Pycharm 不错,无论是学生还是老师都可以免费获得。 点击这里