IDE看不到所有功能

发布于 2024-10-01 02:57:29 字数 360 浏览 0 评论 0原文

我有时在 Python 2.7 中使用 Elcipse+PyDev 和 Pyscripter 昨天我从编译的二进制文件安装了 PyTables,并且:

import tables
h5f = tables.openFile(r'D:\sample.h5','w')
h5f.createGroup('/','Box')
h5f.

所以,当我输入“h5f”时。 IDE 没有向我显示所有方法,只显示其中的几个! 无法用它做任何事情,安装了 PyTables 几次,结果相同...... 方法 h5f.CreateGroup() 工作正常,但 IDE 看不到它,所以不要在下拉列表中显示它! Eclipse 和 Python 的行为相同...

i'm using Elcipse+PyDev and Pyscripter sometimes for Python 2.7
Yesterday i installed PyTables from compiled binaries and :

import tables
h5f = tables.openFile(r'D:\sample.h5','w')
h5f.createGroup('/','Box')
h5f.

So, when I type "h5f." IDE don't show me all the methods, only a few!
Can't do anything with It, installed PyTables few times,same result...
Method h5f.CreateGroup() works perfectly, but IDE dont see it so don't display it in drop-down list! Eclipse and Python both behave same...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迎风吟唱 2024-10-08 02:57:29

Pydev 和 Eclipse 的问题是,当您安装新的软件包或库时,如果您想使用自动完成功能,则必须重新创建系统 PYTHONPATH > 在日食中。

为此,请转到:窗口 ->首选项->派德夫 ->解释Python并在选项卡中,在系统PYTHONPATH中,您将看不到新安装的库,因为pydev只是做了一个副本第一次配置时的 PYTHONPATH ,现在每次安装新软件包时,都必须将 pydev 与新的 PYTHONPATH 重新同步。

因此,要重新同步,您必须单击按钮应用,以便 Eclipse 再次将所有库(其中包括新安装的库)从 PYTHONPATH 导出到 Eclipse。

所以现在 eclipse 应该知道你的库并且你应该可以很好地使用它。

希望这会有所帮助:)

The thing with Pydev and Eclipse is that when you install a new package or library and if you want to use the auto-complete with it, you will have to recreate the system PYTHONPATH in eclipse.

For that go to: Window -> Preferences -> Pydev -> Interpreted Python and in the tab libraries, in System PYTHONPATH you will not see your new installed library because pydev just do a copy of the PYTHONPATH the first time that you have configured and now each time you installed a new package you will have to resynchronize pydev with the new PYTHONPATH.

So to resynchronize you will have to click on the button Apply so that eclipse export (again) all the library (between them your new installed one) from PYTHONPATH to eclipse.

So now eclipse should know your library and you should work with it just fine.

Hope this will help :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文