简体   繁体   English

使用 PyDev zip 将 PyDev 添加到 Eclipse

[英]Adding PyDev to Eclipse using the PyDev zip

I'm having a lot of trouble getting Eclipse to recognise PyDev when using the PyDev zip file.在使用 PyDev zip 文件时,我在让 Eclipse 识别 PyDev 时遇到了很多麻烦。 (I need to use the zip file as the Dev machine does not have internet access). (我需要使用 zip 文件,因为开发机器无法访问互联网)。

I have Eclipse installed and have downloaded the PyDev zip.我安装了 Eclipse 并下载了 PyDev zip。 I've Googled a fair bit and tried the following based on suggestions I found:-我用谷歌搜索了一下,并根据我发现的建议尝试了以下方法:-

  1. Unzipped the.zip into ECLIPSE/helios/dropins and restarted eclipse.将.zip解压到ECLIPSE/helios/dropins并重启eclipse。
  2. Unzipped the.zip into ECLIPSE/helios/plugins and restarted eclipse.将.zip解压到ECLIPSE/helios/plugins并重启eclipse。

Neither makes Python appear as a selection in the Eclipse, Window, Preferences.两者都不会使 Python 出现在 Eclipse、Window、首选项中作为选择。

Helios contains the executable eclipse file I use to load eclipse. Helios 包含我用来加载 eclipse 的可执行 eclipse 文件。

I'm using eclipse in Redhat linux.我在 Redhat linux 中使用 eclipse。

One suggestion was to extract the zip over the eclipse plugins and features folders, but I don't see how that would work as the zip just produces a heap of files and no folders.一个建议是在 eclipse 插件和功能文件夹上提取 zip,但我不知道这将如何工作,因为 zip 只会产生一堆文件而没有文件夹。

Any help to get this working would be great.任何帮助来完成这项工作都会很棒。

Just unzipping the Pydev zip file under C:\eclipse\dropins should be enough.只需解压缩 C:\eclipse\dropins 下的 Pydev zip 文件就足够了。 So:所以:

1) Unzip the zip file in C:\eclipse\dropins
2) Launch Eclipse
3) Test your installation: Go to Window -> Preferences -> PyDev

I just did this today and a far easier way to do it is to use the built-in installer.我今天刚做了这个,一个更简单的方法是使用内置的安装程序。 Go to Help -> Install New Software and then type pydev in the software filter. Go 到 Help -> Install New Software 然后在软件过滤器中输入 pydev。 Since you already have the zip, if you extract it in the dropins folder, you'll skip the download portion and go straight to installing it.由于您已经拥有 zip,如果您将其解压缩到 dropins 文件夹中,您将跳过下载部分并直接安装 go。

I have been able to use the zip to install it manually before.我之前已经能够使用 zip 手动安装它。 I would extract its contents in the eclipse folder overwriting the features and plugins folder.我将在 eclipse 文件夹中提取其内容,覆盖 features 和 plugins 文件夹。 I suggested this to a coworker earlier today and it didn't work for her.我今天早些时候向同事提出了这个建议,但对她没有用。 She had to download the newest version of eclipse for this method to work.她必须下载最新版本的 eclipse 才能使用此方法。 She downloaded the classic version.她下载了经典版。

I've been playing with PyDev and Eclipse.我一直在玩 PyDev 和 Eclipse。 Reinstalled Eclipse on a fresh machine and unzipped the standard PyDev over it (not the source version) and it worked fine.在新机器上重新安装 Eclipse 并在其上解压缩标准 PyDev(不是源版本),它工作正常。 Did the same thing on the same machine having the problems but in a different location (/home) also worked fine.在有问题但在不同位置(/ home)的同一台机器上做同样的事情也可以正常工作。 So it looks like a configuration problem on the machine not a PyDev/Eclipse issue.所以它看起来像是机器上的配置问题,而不是 PyDev/Eclipse 问题。 Sorry for the run around and thanks for the help.抱歉跑来跑去,感谢您的帮助。 Dog.狗。

For whatever it's worth, I was having the same problem running eclipse 3.6 on RHEL 6. When I ran eclipse as myself, I didn't get any PyDev options;不管它值多少钱,我在 RHEL 6 上运行 eclipse 3.6 时遇到了同样的问题。当我像我自己一样运行 eclipse 时,我没有得到任何 PyDev 选项; however, when I ran eclipse as root, everything showed up.但是,当我以 root 身份运行 eclipse 时,一切都出现了。 So permissions could be an issue fyi.所以权限可能是一个问题,仅供参考。

Open the eclipse and navigate in the below format of the menu bar of the eclispe打开 eclipse 并在 eclisp 的菜单栏的以下格式中导航

Window > Perspective > Open Perspective and select Pydev. Window > 透视 > 打开透视和 select Pydev。 As a result when next time you open eclipse you will be using it with python.Please follow the below screen shot in the link I am Using python 3.7 with eclipse photon ide. As a result when next time you open eclipse you will be using it with python.Please follow the below screen shot in the link I am Using python 3.7 with eclipse photon ide.

Eclispe with Python带 Python 的 Eclispe

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

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