Python 斯芬克斯可以';找不到conf.py,但它在那里

Python 斯芬克斯可以';找不到conf.py,但它在那里,python,python-sphinx,Python,Python Sphinx,我试图执行sphinx build,但出现以下错误: (AttractoraVenv) stw041269:AttractoraProject hugovillalobos$ sphinx-build -b html source build Application error: config directory doesn't contain a conf.py file (source) 但是,正如您所看到的,文件就在那里: 我不知道我遗漏了什么。斯芬克斯建筑的签名是: sphinx

我试图执行
sphinx build
,但出现以下错误:

(AttractoraVenv) stw041269:AttractoraProject hugovillalobos$  sphinx-build -b html source build

Application error:
config directory doesn't contain a conf.py file (source)
但是,正如您所看到的,文件就在那里:


我不知道我遗漏了什么。

斯芬克斯建筑的签名是:

sphinx构建[选项][文件名…]

请注意发现
conf.py
的规则:

因此,如果您正在从
/docs
文件夹(在您的案例中名为
/documentation
)执行
sphinx build
,您将编写:

sphinx构建-E-bhtml-d构建/doctrees源构建/html

C:.
├───docs <<-- Execute sphinx-build from this directory!!
│   │  
│   ├───build
│   │   ├───doctrees
│   │   └───html
│   │       ├───_sources
│   │       └───_static
│   │  
│   └───source
│       ├───_static
│       └───_templates
│
└───your_package
    └───__init__
C:。

├───假设当前目录是
source
,请尝试
sphinx build-bhtml。构建
你能给我一些关于答案的反馈吗?您希望它写得稍有不同,还是将特定的解决方案与一般情况一起包括在内?(我没有添加StevePiercy在评论中留下的本地化解决方案,因为我认为它没有必要)。