您的位置:首页 > 编程语言 > Java开发

Eclipse 中安装 Pydev 插件

2016-06-07 11:59 495 查看
一般有两种方法。

一、在线安装

参考:python+Eclipse+pydev环境搭建 
      


Eclipse和PyDev搭建完美Python开发环境(Windows篇)

但是安装过程遇到如下问题:



An error occurred while collecting items to be installed session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Problems downloading artifact: osgi.bundle,com.python.pydev,5.0.0.201605051159.
Error reading signed content:C:\Users\hello\AppData\Local\Temp\signatureFile1853622509879154911.jar An error occurred while processing the signatures for the file: C:\Users\hello\AppData\Local\Temp\signatureFile1853622509879154911.jar

谷歌中搜索,没有太匹配的问题,点了几个页面,也没有解决方法。
然后以如下的信息搜索:
An error occurred while processing the signatures for the file: C:\Users\hello\AppData\Local\Temp\signatureFile

有个相同的错误问题提问。浏览回答可以发现,基本没有给出解决方法,就说是某些特定版本的eclipse的known problem。。。

然后就没办法了。。反正这个问题我最后没解决掉。有知道的,麻烦说下啊,谢谢!

二、离线安装

1. 直接到http://pydev.org/download.html 下载离线安装ZIP包。(这里我直接百度Pydev下载,在CSDN中下载的。)

2. 一种比较随意的方法就是把压缩包里面的plugins解压到Eclipse安装目录下对应的目录,features目录也是同样操作。但是你如果不想搞乱原版本的Eclipse,可以选择如下操作:

在Eclipse安装目录下新建一个links文件夹。然后再在links文件夹下新建名为eclipse的目录,最后把pedev.zip的压缩包内容解压到eclipse目录中。

在links目录下,新建一个名为pydev.link的文件,文件的内容为:path=C:\ItDevelop\eclipse\links\eclipse ,(其中path=C:\ItDevelop\eclipse为eclipse的安装目录)

3. 之后重启Eclipse就可以了。如何检查是否已经正确安装pydev? 打开Eclipse–>Windows–>preferences,然后在左边的树状结构中就能找到Pydev选项。

参考:eclipse如何安装python插件配置
    Eclipse安装Pydev的两种方法
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: