Python:模块列表(>>> help('modules')无效) [英] Python: List of Modules (>>> help('modules') not working)

查看:91
本文介绍了Python:模块列表(>>> help('modules')无效)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要我的模块列表,并被告知:

I wanted a list of my modules and was told:

>>> help('modules')

可以解决问题.但我得到

Would do the trick. But I just get

请稍等,我收集了一个 所有可用模块的列表...

Please wait a moment while I gather a list of all available modules...

杀死我十多分钟.

有人知道是什么原因造成的吗?或我如何才能看到我的模块? (系统Ubuntu 9.10/Python 2.6.4)

Anyone know what could be causing this? Or how I could otherwise see my modules? (System Ubuntu 9.10/Python 2.6.4)

谢谢

推荐答案

安装ipython

$ sudo apt-get install ipython

然后运行ipython并键入import <tab>,其中< tab> 是Tab键

Then run ipython and type import <tab> where <tab> is the tab key

如果您已安装python-pygraphviz软件包,则可以使用

If you've installed the python-pygraphviz package, you can use

import pygraphviz

这篇关于Python:模块列表(&gt;&gt;&gt; help('modules')无效)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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