在OSX上使用pydev与Eclipse [英] Using pydev with Eclipse on OSX

查看:86
本文介绍了在OSX上使用pydev与Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用python解释器的这个路径设置PyDev
/System/Library/Frameworks/Python.framework/Versions/2.5/Python
,因为/ usr / bin下的一个是别名,Eclipse赢了不要选择它我现在可以运行我的python脚本,但不能作为外部工具运行shell。我得到的消息是

I setup PyDev with this path for the python interpreter /System/Library/Frameworks/Python.framework/Versions/2.5/Python since the one under /usr/bin were alias and Eclipse won't select it. I can run my python script now but cannot run the shell as an external tool. The message I get is

变量引用空选择$ {resource_loc}

variable references empty selection ${resource_loc}

如果我使用{container_loc}

Same if I use {container_loc}

任何想法?

Sunit

推荐答案

我也安装了Python.org版本,这是必须的。

I installed the Python.org version as well, this is a must.

我终于让PyDev在Eclipse中工作,指出了解释器到:

I finally got PyDev working in Eclipse by pointing the interpreter to:

/Library/Frameworks/Python.framework/Versions/2.6/bin/python

手动。如果你不这样做(通过使用Autoconfig),似乎找不到正确的版本。

manually. If you don't do it manually (by using the Autoconfig) it seems to not find the right version.

这篇关于在OSX上使用pydev与Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆