在pydev

编程入门 行业动态 更新时间:2024-10-17 23:24:18
本文介绍了在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

本文发布于:2023-07-14 10:03:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1104044.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:pydev

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!