红联Linux门户
Linux帮助

Ubuntu下安装Eclipse with Python3.x

发布时间:2014-11-08 21:35:27来源:linux网站作者:leothronton

在Ubuntu下先装 python3,没啥好说的。


再装eclipse:

1.先在源里装eclipse。


2.安装好eclipse之后:

1)Help->Install New Software…

2)点”Add”在弹出菜单里”Name”里填PyDev,位置里填http://pydev.org/updates,点OK。

3)在弹出菜单里选上PyDev,一路Next直到Finish。安装完会要重启一次eclipse。


3.配置PyDev:

1)重启后打开eclipse,选Windows->Preferences.

2)在左边选Pydev->Interpreter – Python.

3)点New,在Interpreter里,Name填python3.x。 在Interpreter Executable点Browse,在/usr/bin里找到python3.x。点Open,点2次OK,点Apply。


4.验证:

1)File->New->Pydev Project

2)Projcet Name填 pytest3.x,在Grammar Version选3.x。点完成。

3)在左边pytest3.x的文件夹上右键,New->File,吓填个名字.py,输入如print(‘Hello’),点F11,如果正常运行则配置OK了。