为所有安装的软件包读取python文档的最佳方式是什么? [英] What's the best way to read python documentation for all installed packages?

查看:128
本文介绍了为所有安装的软件包读取python文档的最佳方式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用python.org来阅读python文档。我也使用ipython帮助功能,但我更喜欢一个GUI应用程序,我可以在我的机器上运行,显示所有安装的软件包的文档。

I use python.org a lot for reading python documentation. I also use ipython help function, but I would prefer a GUI app that I could run on my machine that would show documentation for all installed packages.

你知道吗这样的存在?

你有什么建议吗?

推荐答案

pydoc 命令有一个内置的HTTP服务器,您可以从以下开始:

The pydoc command has a built-in HTTP server, which you can start with:

pydoc -p 8080

然后转到 http:// localhost:8080 / 。它将包含安装在其搜索路径上的所有模块的文档,其中包含 site-packages 中的任何内容。

Then head to http://localhost:8080/ in your browser. It will have documentation for all modules installed on its search path, which includes anything in site-packages.

这篇关于为所有安装的软件包读取python文档的最佳方式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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