问题描述
我在eclipse和easy_installed软件包中加入了virtualenv时遇到问题。
如果我有
I have a problem with eclipse and easy_install'ed packages into virtualenv.If I have
from sqlalchemy.ext.serializer import loads
导入语句并将鼠标光标置于加载上,我会收到消息
import statement and put mouse cursor on "load" I get message
loads Found at: __module_not_in_the_pythonpath__
,它与<$ c $上的任何模块重复c> PYTHONPATH ,而我尚未将其手动添加到 Project属性->中。 PyDev-PYTHONPATH->外部库
:/
像〜/ Work / Environments / Default / lib / python2.6 / site-packages / Pylons-1.0-py2.6.egg
或任何其他egg pkg目录... 〜/ Work / Environments / Default / lib / python2.6 / site-packages /
已添加但日食
and it repeats with any module on PYTHONPATH
while I have not manually add it to the Project properties -> PyDev - PYTHONPATH -> External Libraries
:/Like ~/Work/Environments/Default/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg
or any other egg pkg dir... ~/Work/Environments/Default/lib/python2.6/site-packages/
is added but eclipse can't see any eggs inside it!
Python解释器设置为〜/ Work / Environments / Default / bin / python2.6
Python interpreter is set to ~/Work/Environments/Default/bin/python2.6
我将eclipse-SDK-3.7M5-linux-gtk与最新的PyDev一起使用。
I use eclipse-SDK-3.7M5-linux-gtk with latest PyDev.
有人可以帮我吗?
推荐答案
如果在Eclipse中配置解释器后添加了程序包,则需要配置再次解释
If you add a package after configuring the interpreter in Eclipse, you need to configure the interpreter again
请参见:
请注意,不建议在项目设置中添加库-仅应将其用于标准PYTHONPATH中未包含但应使用的某些显式附加库在特定的应用程序中。
Note that adding the libraries in the project settings is not the recommended approach - it should be used only for some explicit additional library that is not in the standard PYTHONPATH but is used in a specific application.
这篇关于月食,pydev,easy_install-ed鸡蛋问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!