月食,pydev,easy_install-ed鸡蛋问题 [英] eclipse, pydev, easy_install-ed eggs problem

查看:103
本文介绍了月食,pydev,easy_install-ed鸡蛋问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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

请参见 PyDev的手册


如果在python $ b中添加了一些内容$ b安装,您需要手动将
作为
系统中的新文件夹添加PYTHONPATH(如果在PYTHONPATH中的文件夹下仍不是
)或
(推荐),请删除解释器
并再次添加,然后按Apply。

If you add something to your python installation, you need to either add it manually as a 'new folder' in the System PYTHONPATH (if it's still not under a folder in the PYTHONPATH) or (recommended) remove your interpreter and add it again, then, press apply.

请注意,不建议在项目设置中添加库-仅应将其用于标准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鸡蛋问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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