【问题标题】:Sphinx-build can not be recognized as internl or external commandSphinx-build 无法识别为内部或外部命令
【发布时间】:2011-10-09 13:45:20
【问题描述】:

在 Python 2.5 上,我使用 easy_install 安装了 sphinx,它在 Windows 7 上的以下位置可用:

C:\Python25\Lib\site-packages\sphinx-1.0.8-py2.5.egg\sphinx

我想将几个 .rst 文件转换为 HTML。但是每当我做sphinx-build 时,我都会遇到以下错误:

'sphinx-build' is not recognized as an internal or external command,
operable program or batch file.

我错过了什么吗?

【问题讨论】:

    标签: python windows python-sphinx easy-install


    【解决方案1】:

    sphinx-build 命令应该安装在C:\Python25\Scripts 中。使用完整路径 C:\Python25\Scripts\sphinx-build 来调用命令,或者将该目录添加到您的 PATH。

    【讨论】:

    • 就我而言,它位于漫游文件夹中:C:\Users\USERNAME\AppData\Roaming\Python\Python39\Scripts
    猜你喜欢
    • 2016-01-12
    • 2017-08-22
    • 2020-07-26
    • 1970-01-01
    • 1970-01-01
    • 2014-04-29
    • 2021-09-15
    • 2021-02-08
    • 1970-01-01
    相关资源
    最近更新 更多