安装eclipse的python插件

1.下载python.exe安装

http://mirrors.sohu.com/python/2.6.5/python-2.6.5rc2.msi
win7安装时,中间有段时间需要等待很长时间

2.下载pydev

http://sourceforge.net/projects/pydev/files/pydev/Pydev%202.2.0/PyDev%202.2.0.zip/download
注意安装前需要安装
python2.1以上
eclipse3.2-3.7

3.安装pydev

下载后把zip解压到eclipse目录下,把features和plugins覆盖

4.配置

重启eclipse后在eclipse的window->perperence里能够看到pydev
安装eclipse的python插件_第1张图片
点击“Interpreter - python”->new->添加你的python安装目录下的python.exe
安装eclipse的python插件_第2张图片

5.测试

new->other project->pydev->选择pydev project
安装eclipse的python插件_第3张图片
创建工程"HelloPython"
安装eclipse的python插件_第4张图片
创建"hello"包
在__init__.py里输入
  1. print 'Hello python'
  安装eclipse的python插件_第5张图片
执行程序

安装eclipse的python插件_第6张图片
执行结果:
安装eclipse的python插件_第7张图片
end

原文:http://blog.chinaunix.net/uid-11121450-id-1476897.html

你可能感兴趣的:(eclipse,Python插件)