强制eclipse重新加载Python模块 [英] Force eclipse to reload Python modules

查看:351
本文介绍了强制eclipse重新加载Python模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始使用Eclipse PyDev项目,并发现 BeautifulSoup 缺少。

I have started a Eclipse PyDev project, and found out that BeautifulSoup was missing.

我使用 easy_install 安装它,现在脚本从命令行运行正常。然而,Eclipse仍然认为 BeautifulSoup 没有安装,显示一个烦人的错误消息,不提供任何内省或自动完成。

I installed it using easy_install, and now the scripts runs fine from the command line. Eclipse, however, still thinks that BeautifulSoup isn't installed, displaying an annoying error message and not supplying any introspection or auto complete.

如何强制Eclipse重新加载系统的python包列表? p>

How can I force Eclipse to reload the system's python package list?

推荐答案

你必须重新配置python口译员。通常,自动配置实用程序本身应该发现一切,但是您也可以手动添加/删除软件包。以下是设置位置的截图:

You have to reconfigure the python interpreters. Normally the automatic configuration utility should discover everything by itself, but otherwise you can manually add/remove packages. Here's a screenshot of where the settings are located:

在我记得的唯一场合,我需要做的,我所做的只是从列表中删除python解释器,并运行再次自动配置程序,但也应该可以简单地添加一个库(屏幕截图的下半部分)。

In the only occasion in which I can recall I needed to do that, all I did was to remove the python interpreter from the list and running the Auto Config procedure again, but it should also be possible to simply add a library (bottom half of the screenshot).

HTH!

这篇关于强制eclipse重新加载Python模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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