(转) Eclipse - Python - Installation of PyDev with a Python Hello World tutorial
Once you finished your installation of Python on your Windows OS, GNU/Linux or Mac OS, let me tell you how to install it on your favorite IDE, Eclipse.
First of all, you have to download Eclipse on the official website. I suggest you to choose the JavaScript version.
Let's go.
Open Eclipse then:
Help > Eclipse Marketplace.
On the Find input, type PyDev and click the search icon.
PyDev - Python IDE for Eclipse appears.
Click the Install button on the right.
Let the all selected and click Next.
Accept the licence agreements and click Finish.
A new window asks you if you want to install an unsigned content.
You say OK and a new one appears.
Select the Aptana Pydev; Pydev; Aptana option and click OK.
Eclipse wants to restart now, so click Restart Now.
You are now able to read the file with the .py extension.
But you can not launch the python.exe yet.
So let's do it.
Click:
Window > Preferences > PyDev > Interpreter - Python > New.
Type the name you want and the Interpreter executable path, for example:
On Windows:
C:\soft\python\python3\python.exe
On GNU/Linux or Mac OS:
/usr/bin/python2.7
Click OK and let all subdirectories in yours selected, something like that:
C:\soft\python\python3\DLLs
C:\soft\python\python3\lib
C:\soft\python\python3
C:\soft\python\python3\lib\site-packages
Click OK again, you just added the Python's libraries.
To finish click Apply and OK.
To test this installation, let's create a new Python project:
Right click on the Navigator area and add a Project name: test
Select 2.7 or 3.0 in the Grammar Version area.
Click Finish.
In the src folder created, add a new file name hello.py.
Type it inside:
print('Hello World')
Save it.
There is a green icon with a white triangle in the toolbar, click it.
Choose Python Run on the window and OK.
In the Console window, you are seeing:
Hello World
Great job!
It was an important step in the Python world, you are now able to create great applications.
(转) Eclipse - Python - Installation of PyDev with a Python Hello World tutorial的更多相关文章
- How to Configure Eclipse for Python --- 在eclipse中如何配置pydev
From: http://www.rose-hulman.edu/class/csse/resources/Eclipse/eclipse-python-configuration.htm Pytho ...
- [No000076]用Eclipse编写python(配置PyDev插件)
下载,安装python解释器 地址:https://www.python.org/downloads/ 下载,安装java jdk 地址:http://www.oracle.com/technetwo ...
- Eclipse和PyDev搭建完美Python开发环境(Windows篇)
目录安装Pythonpython for eclipse插件安装配置PyDev插件测试 安装Python从网站上下载最新的版本,从http://python.org/download/下载.安装过程与 ...
- 【转】Eclipse和PyDev搭建完美Python开发环境(Ubuntu篇)
原文网址:http://www.cnblogs.com/Realh/archive/2010/10/10/1847251.html 前两天在Windows下成功地搭好了一个Python开发环境,这次转 ...
- Eclipse和PyDev搭建完美Python开发环境(Windows篇)(转)
摘要:本文讲解了用Eclipse和PyDev搭建Python的开发环境. 十一长假在家闲着没事儿,准备花点时间学习一下Python. 今儿花了一个下午搭建Python的开发环境,不禁感叹————开 ...
- Eclipse上运行Python,使用PyDev
转自:http://www.ibm.com/developerworks/cn/opensource/os-cn-ecl-pydev/index.html 级别: 初级 郑 伟芳 (zhengwf@c ...
- Eclipse和PyDev搭建完美Python开发环境 Windows篇
1,安装Python Python是一个跨平台语言,Python从3.0的版本的语法很多不兼容2版本,官网找到最新的版本并下载:http://www.python.org, 因为之前的一个项目是2版本 ...
- eclipse安装插件的方法,以python为例子
一 转载自:http://www.cnblogs.com/linzhenjie/articles/2639113.html 1.基本需求 1.Eclipse 集成开发环境下载 http://115.c ...
- python环境与PyDev IDE配置
工具eclipse:我目前用是的Eclipse oxygen.历史版本可参考:https://wiki.eclipse.org/Older_Versions_Of_EclipsePython:http ...
随机推荐
- C++深层复制解决指针悬挂
代码: #include <iostream> #include <cstring> using namespace std; class mystring{ public: ...
- 【转载】Java 动态代理
Java 动态代理 本文为 Android 开源项目源码解析 公共技术点中的 动态代理 部分项目地址:Jave Proxy,分析的版本:openjdk 1.6,Demo 地址:Proxy Demo分析 ...
- PHP 中数组函数 isset 效率比 array_key_exists 更高
PHP 中数组函数 isset 效率比 array_key_exists 更高 PHP 浏览:4194 2014年04月05日 isset 和 array_key_exists 函数都可以用来测试数组 ...
- 异步编程设计模式 - IronPythonDebugger
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsof ...
- HOG detectMultiScale 参数分析
前段时间学习了HOG描述子及其与SVM结合在行人检测方面的应用. 当我们用训练好的模型去检测测试图像时,我们会用到detectMultiScale() 这个函数来对图像进行多尺度检测. 这是openc ...
- [转]学DSP、FPGA、ARM,哪个更有前途?
1.这世界真是疯了,貌似有人连FPGA原理是什么都不知道就开始来学习FPGA了. 2.DSP就是一个指令比较独特的处理器.它虽然是通用处理器,但是实际上不怎么“通用”.技术很牛的人可以用DSP做一台电 ...
- 迁移笔记:对ob_start()的总结
1.Flush:刷新缓冲区的内容,输出. 函数格式:flush() 说明:这个函数经常使用,效率很高. 2.ob_start :打开输出缓冲区 函数格式:void ob_start(void) 说明: ...
- VS代码生成工具ReSharper使用手册:配置快捷键
原文 http://www.cnblogs.com/PHPIDE/archive/2013/05/16/3081783.html VS代码生成工具ReSharper提供了丰富的快捷键,可以极大地提高你 ...
- 屌炸天实战 MySQL 系列教程(二) 史上最屌、你不知道的数据库操作
此篇写MySQL中最基础,也是最重要的操作! 第一篇:屌炸天实战 MySQL 系列教程(一) 生产标准线上环境安装配置案例及棘手问题解决 第二篇:屌炸天实战 MySQL 系列教程(二) 史上最屌.你不 ...
- 【转】adb push&pull bug --- Permission denied----不错
原文网址:http://blog.csdn.net/hengkong_horse/article/details/8708076 问题背景: adb push E:\\rrr.txt /data/ ...