Force eclipse to reload Python modules

泪湿孤枕 提交于 2019-12-01 09:53:26

问题


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?


回答1:


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!



来源:https://stackoverflow.com/questions/8318103/force-eclipse-to-reload-python-modules

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!