Java 安装pydev时出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20207341/
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
Error installing pydev
提问by user1556297
I have eclipse 3.7 installed and I'd like to install pydev from pydev.org/updates from help>install new software but I keep getting errors:
我安装了 eclipse 3.7,我想从 pydev.org/updates from help>install new software 安装 pydev,但我不断收到错误:
An error occurred while collecting items to be installed
session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,com.python.pydev,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile6253600369144568995.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile6253600369144568995.jar
Problems downloading artifact: osgi.bundle,com.python.pydev.analysis,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile571100381995937794.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile571100381995937794.jar
Problems downloading artifact: osgi.bundle,com.python.pydev.codecompletion,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile7939549393376543178.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile7939549393376543178.jar
Problems downloading artifact: osgi.bundle,com.python.pydev.debug,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile7919082619115038876.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile7919082619115038876.jar
Problems downloading artifact: osgi.bundle,com.python.pydev.fastparser,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile5333565376705188952.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile5333565376705188952.jar
Problems downloading artifact: osgi.bundle,com.python.pydev.refactoring,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile5676238210588307882.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile5676238210588307882.jar
Problems downloading artifact: osgi.bundle,org.python.pydev,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile4716582641827617890.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile4716582641827617890.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.ast,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile853205344535319189.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile853205344535319189.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.core,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile6242038948772764722.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile6242038948772764722.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.customizations,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile6200571740568092132.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile6200571740568092132.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.debug,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile7348469738343374780.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile7348469738343374780.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.django,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile3577420456810055714.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile3577420456810055714.jar
Problems downloading artifact: org.eclipse.update.feature,org.python.pydev.feature,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile3341085924253320715.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile3341085924253320715.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.help,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile3845056374345623111.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile3845056374345623111.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.jython,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile6508149376440133601.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile6508149376440133601.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.parser,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile2272439666869250515.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile2272439666869250515.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.refactoring,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile3096660355605659228.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile3096660355605659228.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.shared_core,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile5752308523522565836.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile5752308523522565836.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.shared_interactive_console,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile7961459825015698127.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile7961459825015698127.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.shared_ui,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile448758150516384194.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile448758150516384194.jar
How can I fix this?
我怎样才能解决这个问题?
回答by Taji
Not sure if this will fix the problem, but one workaround solution may be to uncheck "Show only the latest versions of available software" on the install dialog box where you choose the version of PyDev to install.
不确定这是否能解决问题,但一种解决方法可能是在您选择要安装的 PyDev 版本的安装对话框中取消选中“仅显示可用软件的最新版本”。
Alternatively, you could manually install PyDev by downloading the zip file and extracting it to the eclipse/dropins folder.
或者,您可以通过下载 zip 文件并将其解压缩到 eclipse/dropins 文件夹来手动安装 PyDev。
You can find the latest version of PyDev here: http://sourceforge.net/projects/pydev/files/
你可以在这里找到最新版本的 PyDev:http: //sourceforge.net/projects/pydev/files/
The second solution is as noted in the PyDev manual: http://pydev.org/manual_101_install.html
第二种解决方案如 PyDev 手册中所述:http: //pydev.org/manual_101_install.html
Hopefully one of these approaches fixes the issue. :)
希望这些方法之一解决了这个问题。:)
回答by Juls0419
I was having problems with installing all versions of PyDev from 3.0 onwards while using Ubuntu, even when using the zip file supplied on the PyDev website for a while, but here is the solution to get it working.
我在使用 Ubuntu 时从 3.0 开始安装所有版本的 PyDev 时遇到问题,即使使用 PyDev 网站上提供的 zip 文件有一段时间,但这里是让它工作的解决方案。
Up to date versions of Eclipse may complete the PyDev installation using Eclipse's install feature with "http://pydev.org/updates", but even though installed PyDev will do nothing. (You can skip to step 2if you are in this situation) Older versions of Eclipse will show the above error. However, both old (at least going as far back as the version on the Ubuntu Software Center, 3.7.2) and new versions can use PyDev 3.0+ perfectly if you follow these instructions.
最新版本的 Eclipse 可以使用带有“ http://pydev.org/updates”的Eclipse 安装功能完成 PyDev 安装,但即使安装了 PyDev 也不会执行任何操作。(如果遇到这种情况,可以跳到第 2 步)旧版本的 Eclipse 将显示上述错误。但是,如果您遵循这些说明,旧版本(至少可以追溯到 Ubuntu 软件中心的版本 3.7.2)和新版本都可以完美地使用 PyDev 3.0+。
Step 1:
第1步:
Go to the (PyDev website) and download the zip file for Pydev 3.0 or higher.
转到(PyDev 网站)并下载 Pydev 3.0 或更高版本的 zip 文件。
Navigate to ~/.eclipse/org.eclipse.platform_VERSION/ (in Ubuntu, not sure where the Eclipse folder would be in Windows) and create a folder called "dropins". Copy the contents of the downloaded zip file to this new folder.
导航到 ~/.eclipse/org.eclipse.platform_ VERSION/(在 Ubuntu 中,不确定 Eclipse 文件夹在 Windows 中的位置)并创建一个名为“dropins”的文件夹。将下载的 zip 文件的内容复制到这个新文件夹。
Step 2:
第2步:
PyDev will now be installed, but wont do anything until you download Java 7, so you need to type the following commands into a terminal:
现在将安装 PyDev,但在您下载 Java 7 之前不会执行任何操作,因此您需要在终端中键入以下命令:
sudo add-apt-repository ppa:webupd8team/java
须藤添加-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get 更新
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java7-set-default
须藤 apt-get 安装 oracle-java7-set-default
If you are using Windowsyou should probably be able to just download and install Java 7 from the Oracle website and stop here.
如果您使用的是 Windows,您应该可以从 Oracle 网站下载并安装 Java 7,然后到此为止。
Step 3:
第 3 步:
Java 7 will now be installed, but it is possible that Eclipse will no longer start. If this is the case you need to type the following into the terminal on 32-bitsystems:
现在将安装 Java 7,但 Eclipse 可能不再启动。如果是这种情况,您需要在32 位系统上的终端中键入以下内容:
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/
Or the following on 64-bitsystems:
或者在64 位系统上执行以下操作:
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/
PyDev 3.0+ should now be working fully in Eclipse!
PyDev 3.0+ 现在应该可以在 Eclipse 中完全运行了!
回答by dmaij
The pydevsite states as requirement that the version of eclipse should be 3.8/4.2 (JUNO) and upwards.
该PyDev的现场状态的要求,即日食的版本应该是3.8 / 4.2(JUNO)及以上。
I ran into the same problem, updated eclipse and the problem vanished.
我遇到了同样的问题,更新了 eclipse 并且问题消失了。
A more descriptive report from the installer would have been nicer.
来自安装程序的更具描述性的报告会更好。