强制 eclipse 重新加载 Python 模块
我已经启动了一个 Eclipse PyDev 项目,并发现 BeautifulSoup
失踪了。
我使用 easy_install
安装了它,现在脚本可以从命令行正常运行。然而,Eclipse 仍然认为 BeautifulSoup
未安装,显示恼人的错误消息并且不提供任何内省或自动完成。
如何强制 Eclipse 重新加载系统的 python 包列表?
I have started a Eclipse PyDev project, and found out that BeautifulSoup
was missing.
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.
How can I force Eclipse to reload the system's python package list?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须重新配置 python 解释器。通常,自动配置实用程序应该自行发现所有内容,但否则您可以手动添加/删除包。以下是设置所在位置的屏幕截图:
在我记得的唯一一次情况下,我需要为此,我所做的就是从列表中删除 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:
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!