使用 PyDev zip 将 PyDev 添加到 Eclipse
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7019933/
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
Adding PyDev to Eclipse using the PyDev zip
提问by Dog
I'm having a lot of trouble getting Eclipse to recognise PyDev when using the PyDev zip file. (I need to use the zip file as the Dev machine does not have internet access).
在使用 PyDev zip 文件时,我很难让 Eclipse 识别 PyDev。(我需要使用 zip 文件,因为 Dev 机器没有互联网访问权限)。
I have Eclipse installed and have downloaded the PyDev zip. I've Googled a fair bit and tried the following based on suggestions I found:-
我安装了 Eclipse 并下载了 PyDev zip。我在谷歌上搜索了很多,并根据我发现的建议尝试了以下方法:-
- Unzipped the .zip into ECLIPSE/helios/dropins and restarted eclipse.
- Unzipped the .zip into ECLIPSE/helios/plugins and restarted eclipse.
- 将 .zip 解压缩到 ECLIPSE/helios/dropins 并重新启动 eclipse。
- 将 .zip 解压缩到 ECLIPSE/helios/plugins 并重新启动 eclipse。
Neither makes Python appear as a selection in the Eclipse, Window, Preferences.
也没有让 Python 出现在 Eclipse、Window、Preferences 中。
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.
任何帮助使其正常工作都会很棒。
回答by Rafa
Just unzipping the Pydev zip file under C:\eclipse\dropins should be enough. So:
只需解压缩 C:\eclipse\dropins 下的 Pydev zip 文件就足够了。所以:
1) Unzip the zip file in C:\eclipse\dropins
2) Launch Eclipse
3) Test your installation: Go to Window -> Preferences -> PyDev
回答by Manny D
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. 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.
我今天刚刚做了这个,一个更简单的方法是使用内置的安装程序。转到“帮助”->“安装新软件”,然后在软件过滤器中键入 pydev。由于您已经拥有 zip,如果您将其解压缩到 dropins 文件夹中,您将跳过下载部分并直接进行安装。
I have been able to use the zip to install it manually before. I would extract its contents in the eclipse folder overwriting the features and plugins folder. 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. She downloaded the classic version.
我之前已经能够使用 zip 手动安装它。我会在 eclipse 文件夹中提取它的内容,覆盖 features 和 plugins 文件夹。我今天早些时候向同事建议了这个,但对她不起作用。她必须下载最新版本的 eclipse 才能使用此方法。她下载了经典版。
回答by Dog
I've been playing with PyDev and Eclipse. Reinstalled Eclipse on a fresh machine and unzipped the standard PyDev over it (not the source version) and it worked fine. Did the same thing on the same machine having the problems but in a different location (/home) also worked fine. So it looks like a configuration problem on the machine not a PyDev/Eclipse issue. Sorry for the run around and thanks for the help. Dog.
我一直在玩 PyDev 和 Eclipse。在一台新机器上重新安装 Eclipse 并将标准 PyDev 解压缩到它上面(不是源版本),它运行良好。在有问题的同一台机器上做了同样的事情,但在不同的位置 (/home) 也工作正常。所以它看起来像是机器上的配置问题,而不是 PyDev/Eclipse 问题。很抱歉跑来跑去,感谢您的帮助。狗。
回答by user985030
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; however, when I ran eclipse as root, everything showed up. So permissions could be an issue fyi.
无论如何,我在 RHEL 6 上运行 eclipse 3.6 时遇到了同样的问题。当我以自己的身份运行 eclipse 时,我没有得到任何 PyDev 选项;然而,当我以 root 身份运行 eclipse 时,一切都出现了。所以权限可能是一个问题仅供参考。
回答by Arpan Ganguly
Open the eclipse and navigate in the below format of the menu bar of the eclispe
打开eclipse并以eclispe菜单栏的以下格式导航
Window > Perspective > Open Perspective and 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.
Window > Perspective > Open Perspective 并选择 Pydev。因此,当您下次打开 eclipse 时,您将使用它与 python。请按照以下链接中的屏幕截图使用 eclipse photon ide 使用 python 3.7。