Eclipse+pydev配置问题

Python/PHP/Perl 开发与设计
回复
hsl4125
帖子: 33
注册时间: 2008-01-18 13:22
送出感谢: 0
接收感谢: 0
联系:

Eclipse+pydev配置问题

#1

帖子 hsl4125 » 2008-03-03 15:10

我把Eclipse和pydev都装好了,但是总是有问题。应该是配置的问题吧,请问高手该如何设置呢?很着急阿!
头像
juanzhewudi
帖子: 1114
注册时间: 2006-01-19 11:55
来自: HUST
送出感谢: 0
接收感谢: 0
联系:

#2

帖子 juanzhewudi » 2008-03-03 15:24

你在eclipse里面的Pydev设置卡里面设置一下涉,记得是要自己手工指定python路径来导入python库的。。。
ps:有问题最好能描述一下,以免抓瞎。。。
hsl4125
帖子: 33
注册时间: 2008-01-18 13:22
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 hsl4125 » 2008-03-03 15:53

我也知道要导入库阿,可是应该导入的库在哪里?我根本找不到阿!
hsl4125
帖子: 33
注册时间: 2008-01-18 13:22
送出感谢: 0
接收感谢: 0
联系:

#4

帖子 hsl4125 » 2008-03-03 15:57

还有,语法高亮,以及自动代码缩近等应该怎么设置阿?我刚才设置了一下,但是设置的好像不对,python脚本运行不了。/user/bin/python2.5这是我弄的库位置。可是为什么运行不了呢?难道是库不对?
头像
anticlockwise
帖子: 2393
注册时间: 2007-03-01 20:46
来自: 湖南长沙
送出感谢: 0
接收感谢: 0
联系:

#5

帖子 anticlockwise » 2008-03-03 22:16

你的Python Interpreter位置设定应该是:/usr/bin/python,然后Pydev会自动搜索PYTHONPATH的
hsl4125
帖子: 33
注册时间: 2008-01-18 13:22
送出感谢: 0
接收感谢: 0
联系:

#6

帖子 hsl4125 » 2008-03-04 11:15

我已经照你说的设置了,可是还是不行阿!总是有什么 "resource/文件名 does not exit" 这是什么意思阿?
还有语法高亮,自动缩近怎么设置阿?
hsl4125
帖子: 33
注册时间: 2008-01-18 13:22
送出感谢: 0
接收感谢: 0
联系:

#7

帖子 hsl4125 » 2008-03-04 13:49

好,我已经设置好了。但是我的pydev没有语法加亮,代码缩近,以及代码补全功能。这个应该怎么设置?
头像
zzningxp
帖子: 158
注册时间: 2008-09-03 19:16
送出感谢: 0
接收感谢: 0
联系:

Re: Eclipse+pydev配置问题

#8

帖子 zzningxp » 2008-11-04 21:15

http://pydev.sourceforge.net/faq.html#h ... with_pydev

ms是用windows写的,不过没关系,知道改什么地方就好了

代码: 全选

How do I get started with Pydev?

The following text was contributed by Jack Trainor as a "Hello World" to get started with pydev.


NOTE:
Specific details that may not apply to others are included, but as a developer I find it easier to modify specific working instructions, than to guess what I need from vague recommendations.

Requirements not covered in the faq:

    * Python 2.3.x or 2.4.x must be installed
    * Java 1.4 or higher must be installed 

Step-by-step:

    * Unzip eclipse-SDK-3.1-win32.zip to c:\
    * Unzip org.python.pydev.feature_xxxxxx.zip to c:\
      NOTE:The download page contains instructions on how to get and install pydev using the Eclipse update manager instead of the .zip file.
    * Double-click c:\eclipse\eclipse.exe
    * Set default workspace where you want it.
    * Close Welcome splash pane.
    * Select Resource perspective: Window\Open Perspective\Other...\Select Perspective\Resource.
    * Click OK.
    * Select Window\Preferences\Pydev\Interpreter - Python.
    * Click top New... button and enter Python path, e.g., c:\Python24\python.exe
    * Click OK.
    * Click File\New\Project...
    * Select Simple\Project Wizard
    * Click Next.
    * Enter Project Name, e.g. SimpleProj1.
    * Click Finish.
    * Click File\New...\File.
    * Enter File Name, e.g. Py1.py.
    * Click Finish.
    * Right-click SimpleProj1 in Navigator pane and select Properties.
    * Click Pydev-PYTHONPATH.
    * Click top pane "Add source folder" button.
    * /SimpleProj1 should already be selected. Click OK.
    * Click top pane "Add source folder" button.
    * Add path to source folder on disk, e.g., C:\Dev\eclipse\SimpleProj1.
    * Click OK.
    * Add some Python code to Py1.py: print 'Hello world!'
    * Save.
    * Right-click on Py1.py in Navigator pane.
    * Select Run as\Python run.
    * A console window should appear showing output from the Python program.

NOTE 2:
If some specific detail does not work in the way it is described, please report it in the pydev bug-tracker. 
ITdavid
帖子: 1
注册时间: 2008-11-20 21:02
送出感谢: 0
接收感谢: 0

Re: Eclipse+pydev配置问题

#9

帖子 ITdavid » 2008-11-20 21:05

为什么ubuntu下的eclipse+pydev中不能够用ctrl+鼠标点击来定位变量的定义位置。
回复

回到 “Python/Php/Perl”