【问题标题】:How to generate pdf with epydoc?如何使用 epydoc 生成 pdf?
【发布时间】:2009-08-30 08:22:32
【问题描述】:

我正在考虑将 epydoc 用于一个模块的文档。对我来说它看起来不错,并且在我生成 html 文档时工作正常。

我想尝试生成 pdf 格式的文档。我刚刚修改了配置文件中的“输出”设置。

很遗憾,epydoc 在生成 pdf 文件时失败。错误是“Error: Error reading pstat file: [Errno 2] No such file or directory: 'profile.out'”

它会生成一些 tex 文件。我想也许我错过了乳胶,但我对 tex 和乳胶不是很熟悉。更多的是我在 Windows 上工作。

制作epydoc生成pdf文件的下一步应该是什么?

提前感谢您的帮助

【问题讨论】:

    标签: python documentation latex epydoc


    【解决方案1】:

    我想你使用了一个现有的 conf 文件。

    如果您仔细观察内部,您会看到一个选项pstat: profile.out。此选项表示文件profile.out 将用于生成调用图(请参阅doc)。

    # The name of one or more pstat files (generated by the profile
    # or hotshot module).  These are used to generate call graphs.
    pstat: profile.out
    

    您需要使用profilehotspot模块生成此文件。例如,您可以通过

    运行您的模块
    python -m "profile" -o profile.out mymodule.py
    

    (也可以使用hotspotcProfile,比profile快很多)

    这应该可行(我希望如此)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-13
      • 2020-01-08
      • 1970-01-01
      相关资源
      最近更新 更多