Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Eclipse 中使用 PyDev 和 Windows 7 上的 Python 2.7。我安装了 networkx 并且它在 Python shell 中正常运行,但是在 Eclipse 中它显示错误,因为它无法找到 networkx 谁能告诉我如何删除这个错误?
你需要重建你的解释器
转到项目 > 属性 > pyDev-Interpreter/Grammar
点击“点击此处进行配置”
删除现有的解释器
点击“自动配置”按钮并按照提示操作
有点痛苦,但我发现自动发现新安装的软件包的唯一方法
我认为有两种选择:
sys.path