在pydev-eclipse中重新安排pythonpath? [英] re-arrange pythonpath in pydev-eclipse?

查看:145
本文介绍了在pydev-eclipse中重新安排pythonpath?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在eclipse中使用pydev。

I'm using pydev in eclipse.

我希望pydev首先使用我在源目录中开发的python类。但是,由于我还将内置的蛋安装到系统目录中,所以pydev也从系统目录中获取类。

I was hoping that pydev would first use the python classes I develop in my source dir. but since I also install the built egg into system dir, pydev also picks up the classes from system dir.

问题是pydev首先在其python路径中使用系统dir 。所以在安装了bug的版本后,通过pydev进行调试,并在本地源代码中进行了必要的修改,不会生效,因为安装的egg没有改变。或者在相反的情况下,正如我正在调试的,pydev带我去egg文件,我修改这些egg文件,所以真正的源代码没有改变。

the problem is that pydev uses system dir first in its python path. so after I installed a buggy version, and debug through pydev, and made the necessary changes in local sourcecode, it does not take effect, since the installed egg is not changed. or in the reverse case, as I was debugging, pydev takes me to the egg files, and I modify those egg files, so the real source code is not changed.

那么我怎么能让pydev重新排列pythonpath命令? (就像eclipse为java构建classpath一样)?

so How could I let pydev rearrange pythonpath order? (just like eclipse does for java build classpath) ?

谢谢
yang

thanks yang

推荐答案

如果您正在使用setuptools,您可以尝试在egg上运行 sudo python setup.py development 以及在Eclipse之间添加项目依赖关系

if you are using setuptools, you can try running sudo python setup.py develop on the egg as well as adding project dependencies between the two in Eclipse

这篇关于在pydev-eclipse中重新安排pythonpath?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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