Ubuntu 下安装Eclipse with Python3.x

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

再装eclipse:

1. 先在源里装eclipse。

2. 安装好eclipse之后:

1) Help->Install New Software…

2) 点”Add”在弹出菜单里”Name”里填PyDev,位置里填,点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了。

更多Ubuntu相关信息见Ubuntu 专题页面 ?tid=2

不要害怕错过什么,因为在路上你就已经收获了自由自在的好心情。

Ubuntu 下安装Eclipse with Python3.x

相关文章:

你感兴趣的文章:

标签云: