eclipse中pydev插件安装出错及环境配置问题总结

想用eclipse学习Python,结果连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=). 
Unable to read repository at http://pydev.org/updates/plugins/org.python.pydev.core_2.7.1.2012100913.jar. 
Read timed out 
Unable to read repository at http://pydev.org/updates/plugins/org.python.pydev.refactoring_2.7.1.2012100913.jar. 

Read timed out 

eclipse中pydev插件安装出错及环境配置问题总结

网上搜了一下,大概是由于pydev被和谐了,大概有两种解决思路

1,直接把pydev下载下来,直接手动安装。

到pydev的主页,选择高于自己Python版本一级的pydev,eg:我的python是2.7.1需要下载2.8版本的pydev;如果pyde版本比自己Python版本高太多将导致eclipse中不会出现pydev;如果pydev与自己Python版本号相同将导致pydev环境配置错误。pydev下载地址:http://sourceforge.net/projects/pydev/files/pydev/

把下载好的pydev压缩包内的plugins和features 文件夹内的内容复制到eclipse的解压目录的对应的文件夹中即可。

2,给eclipse 设置代理---------这种方法暂未尝试

默认的Eclipse 是不用代理上网,但在一些公司的局域网,需要使用代理上网,
因而需要手工设置eclipse的上网设置        
window-->preferences-->general-->network connections 
选中 manual proxy configuration: 依次填入http proxy , port就ok 了。
另外,如果代理需要用帐号和密码就需要选中 Enable proxy authentication,
然后填上 user name  及password   取消,ok.