eclipse怎么eclipse建立pythonn

【教程】在Eclipse中使用PyDev进行Python开发
的过程中,已经:
了,且已经:
所以,接着去验证PyDev是否工作,使用PyDev去进行Python开发。
1.配置好PyDev后,去写个简单的Python脚本,去试试是否可以正常工作。
其实,官网也有教程供参考的:
自己去操作试试。
2.File -& New- Other
(其实也可以直接使用快捷键:Ctrl+N)
PyDev-&PyDev Project
4. 然后再填写完项目信息后,点击完成:
5. 第一次的话,其会问你,是否使用PyDev的试图,点击Remember和Yes:
6. 结果我这里由于是新建的Eclipse,导致界面没有切换到项目浏览模式,所以需要手动去设置一下:
Window -& Show View -& PyDev Package Explorer
7. 之后,再点击了一下那个Restore,就出现了PyDev的视图了:
8. 然后可以点开对应的pydevTest项目:
9. 去新建一个文件:
10. 然后输入文件名pydevTest.py:
后点击完成。
提示:此处结果还遇到一个Win7提示,是否运行JavaTM访问网络的:
11. 然后就可以看到新建的python文件:
12. 然后自己输入代码:
#!/usr/bin/python
# -*- coding: utf-8 -*-
【记录】使用Python的IDE:Eclipse+PyDev
/try_with_python_ide_eclipse_pydev
admin at crifan dot com
print &Current platform.uname() in Ecplise+PyDev=&,platform.uname();
13. 然后点击Run去运行Python代码:
14. 然后需要选择一个运行方式,此处不需要测试,所以只需要普通运行,所以选择:
Python Run
15. 然后就可以自动打开Console,显示出结果了:
至此,终于使用Eclipse+PyDev,正常运行Python代码,可以进行Python开发了。
16. 另外,提示一下,Eclipse+PyDev中,同样是支持代码提示的:
比如在platform后输入点,然后会动态提示出对应的属性和函数:
还是很好用的。
Eclipse+PyDev,开发Python,效果不错的说。
共享此文章:
免费的格式化Javascript源码的网站
查询Unicode字符,且还带Oct,Decimal,Hex,HTML Entity
HTML和Javascript都支持,很好用。本文重点介绍使用Eclipse+pydev插件来写Python代码,& 以及在Mac上配置Eclipse+Pydev 和Windows配置Eclipse+Pydev&
编辑器:Python 自带的 IDLE
简单快捷, 学习Python或者编写小型软件的时候。非常有用。
编辑器: Eclipse + pydev插件
1. Eclipse是写JAVA的IDE, 这样就可以通用了,学习代价小。& 学会了Eclipse, 以后写Python或者JAVA 都可以。
2. Eclipse, 功能强大。
3. Eclipse跨平台, 可以在Mac上和Windows运行
安装Python
下载地址:http://www.python.org/
Python 有 Python 2 和 Python 3 两个版本。& 语法有些区别。& 保险起见, 我安装Python 2.7.6
安装JAVA JDK
下载地址:/technetwork/java/javase/downloads/index.html
Eclipse 需要这个安装好JAVA JDK后才能运行
下载Eclipse
http://www.eclipse.org/downloads/&&&& 到这下载。&
下载完后,解压就可以直接使用,& Eclipse不需要安装。
pydev插件介绍
pydev插件的官方网站: http://www.pydev.org/(不需要下载)
在Eclipse中安装pydev插件
启动Eclipse, 点击Help-&Install New Software...&& 在弹出的对话框中,点Add 按钮。& Name中填:Pydev,& Location中填http://pydev.org/updates
然后一步一步装下去。& 如果装的过程中,报错了。 就重新装。
配置pydev解释器
安装好pydev后, 需要配置Python解释器。
在Eclipse菜单栏中,点击Windows -&Preferences.&&&
在对话框中,点击pyDev-&Interpreter - Python.& 点击New按钮, 选择python.exe的路径, 打开后显示出一个包含很多复选框的窗口. 点OK
如果是Mac系统, 点击&Auto Config& 按钮
开始写代码
启动Eclipse,& 创建一个新的项目,&& File-&New-&Projects...&& 选择PyDev-&PyDevProject 输入项目名称.
新建 pyDev Package.&&& 就可以写代码了。
&输入包名,这里输入Test1
阅读(...) 评论()使用eclipse开发python
开发有很多工具,其中Eclipse+Pydev 是最常见的一种。本文简单介绍Windows下Eclipse+PyDev 安装和配置。
  Eclipse 是一种基于
的可扩展开源开发平台。就其自身而言,它只是一个框架和一组服务,用于通过插件构建开发环境。
  PyDev 是Eclipse的 Python IDE 插件,利用 PyDev 插件把 Eclipse 变为功能强大且易用的 Python IDE,方便了众多的 Python 开发人员。
一、安装Eclipse
  Eclipse 下载地址:http://www.eclipse.org/downloads/
  目前最新版本 eclipse-SDK-3.7.1-win32.zip
  将下载的eclipse-SDK-3.7.1-win32.zip压缩包,直接解压到D盘根目录(如:D:\Eclipse),安装完毕。
  要使用Eclipse,还需要安装JRE(JAVA运行环境)
  JRE 下载地址:/technetwork/java/javase/downloads/index.html
  目前最新版本 jre-7u3--i586.exe
  双击安装即可。
更强大的IDE应该有自动提示,完备的调试和语法高亮功能,当然缩进也应该更好的支持,尤其对于Python这种强制缩进的语言,自动提示功能是指,你输入一个函数的自动提示参数,或者输入一个对象的时候自动提示它的成员函数和成员变量,这些都能大大提高编码效率,调试功能也就是debug啦,最好有单步调试功能,单步调试多么重要我就不说了,程序员都明白。当工程很大的时候,怎么管理工程也是问题,Python也一样,当工程很大的时候,文件也很多,此时用IDLE不管是管理工程还是调试显然是不能胜任了。
说到eclipse,大部分“玩家”会说,这不是开发java的么?是的,eclipse在设计之初是为开发java打造的,但是由于其整个架构非常合理,对插件的支持基本可以无缝对接,开句玩笑,eclipse就是为插件而生的,哈哈,因为其强大的插件接口,很多第三方软件厂商开发了很多好用的插件,甚至它的国际化都是通过插件来实现的,其中对它影响最大的插件应该是myeclipse,eclipse本身其实实现的功能有限,就一个很朴实的IDE,而且对于IBM来说,这是个失败的项目(当初是为了对抗了netbeans,其中的纠结应该可以说半本书吧),后来IBM一气之下干脆把eclipse开源了,但是因为架子搭得好,实用,关键是免费,受到广大java爱好者的好评,myeclipse说白了就是一个插件集合,里面插件基本都单独找的到,但是myeclipse是收费的,而且很贵,所以要用的话还是去网上找个版吧。
图1.myeclipse的开发界面
p.s:喜欢myeclipse的也可以
二、安装PyDev插件
  官方地址:http://pydev.org/index.html
  下载地址:http://sourceforge.net/projects/pydev/files/
  两种安装方法:
  1、将下载的PyDev解压(目前最新版本 PyDev 2.4.0.zip 压缩包),PyDev解压后一般包含Plugins和Feature文件夹,将PyDev解压后的文件夹拷贝到Eclipse解压后的目录下即可,完成后再启动Eclipse,可以在Eclipse菜单Help->About Eclipse SDK->Installation Detail看到PyDev组件的安装。
  2、直接在Eclipse中选择菜单:Help—Software Updates—Find And Install,选择 Search for new features to intall,点 New Remote Site 按钮,输入http://pydev.org/updates,下载并安装。
三、Eclipse + Pydev 的配置
  在Eclipse菜单Windows->Preferences->PyDev->Interpreter python配置你要只用的python解析器。
  点击New按钮,从Python的安装路径下选择Python.exe。
现在可以启动eclipse新建工程了,如图所示,选择Pydev Project工程,点下一步,输入工程名,选择工程路径,注意那个工程类型那,选择你机器上安装的pyhton的版本,如果是装的2.5就选择python 2.5了。工程建好,再新建一个PyModule就可以进行python的代码编写了,同时还可以建python的模块。
图2.新建一个Python工程
图3.输入工程名和选择python的版本
图3.新建一个Python的模块,菜单的下面是新建Python的包
怎么进行调试就自己摸索了。工具栏里面一个绿色的原形按钮里面一个向右的白色箭头是运行按钮,像一个虫子(debug)的按钮时调试按钮。鼠标在没行代码的左边约一厘米的位置双击可以打断点。
图4.一个简单的工程
祝你顺利!
(window.slotbydup=window.slotbydup || []).push({
id: '2467140',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467141',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467142',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467143',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467148',
container: s,
size: '1000,90',
display: 'inlay-fix'> eclipse+python筹建方法
eclipse+python筹建方法
lzylzzxa & &
发布时间: & &
浏览:18 & &
回复:0 & &
悬赏:0.0希赛币
eclipse+python搭建方法
  这两天看了一下云计算的招聘信息,因为之前系统学习了一下hadoop。然后发现python好像各种招聘云计算的所要求的知识。花了几天学习了一下。如果有Java的基础学习python就简单了。下面是在eclipse里面安装python。我安装的python是2.7。eclipse版本是Helios Service Release 1如果你是用help--&Eclipse Marketplace--&search输入pydev。这是查询出来的是3.1版本。这是安装会报错。错误信息:
  An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,com.python.pydev,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9213.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9213.jar
Problems downloading artifact: osgi.bundle,com.python.pydev.analysis,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9215.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9215.jar
Problems downloading artifact: osgi.bundle,codecompletion,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9216.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9216.jar
Problems downloading artifact: osgi.bundle,com.python.pydev.debug,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9214.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9214.jar
Problems downloading artifact: osgi.bundle,com.python.pydev.fastparser,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9221.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9221.jar
Problems downloading artifact: osgi.bundle,com.python.pydev.refactoring,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9220.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9220.jar
Problems downloading artifact: osgi.bundle,org.python.pydev,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9223.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9223.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.ast,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9225.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9225.jar
Problems downloading artifact: osgi.bundle,orre,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9227.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9227.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.customizations,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9229.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9229.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.debug,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9231.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9231.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.django,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9233.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9233.jar
Problems downloading artifact: org.eclipse.update.feature,org.python.pydev.feature,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9235.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9235.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.help,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9238.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9238.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.jython,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9239.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9239.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.parser,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9241.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9241.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.refactoring,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9243.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9243.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.shared_core,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9245.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9245.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.shared_interactive_console,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9247.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9247.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.shared_ui,3.1.0..
Error reading signed content:C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9249.jar
An error occurred while processing the signatures for the file: C:\Users\ADMINI~1\AppData\Local\Temp\signatureFile9249.jar
  所以在网上直接找低版本的,我用的是pydev2.7下载地址:
  解压文件。将文件夹放到eclipse的安装录入里面的dropins文件中。
  下面是从官网截的图
本问题标题:
本问题地址:
温馨提示:本问题已经关闭,不能解答。
暂无合适的专家
&&&&&&&&&&&&&&&
希赛网 版权所有 & &&

我要回帖

更多关于 python eclipse pydev 的文章

 

随机推荐