【发布时间】:2018-03-13 05:25:34
【问题描述】:
我的 readthedocs.org 构建刚刚开始失败......我不确定为什么确切而且不是特别擅长 Sphynx。我不明白为什么它试图为 docs 目录之外的需求文件构建东西,或者为什么它突然找不到这个版本的 Django(或者为什么它甚至需要)。
失败消息
Collecting Django==2.0.3 (from -r /home/docs/checkouts/readthedocs.org/user_builds/django-hitcount/checkouts/latest/example_project/requirements.txt (line 1))
Could not find a version that satisfies the requirement Django==2.0.3 (from -r /home/docs/checkouts/readthedocs.org/user_builds/django-hitcount/checkouts/latest/example_project/requirements.txt (line 1)) (from versions: 1.1.3, ...1.11.11)
No matching distribution found for Django==2.0.3 (from -r /home/docs/checkouts/readthedocs.org/user_builds/django-hitcount/checkouts/latest/example_project/requirements.txt (line 1))
回购
这是给:https://github.com/thornomad/django-hitcount
如果你想看看我把这件事搞砸的方式!谢谢
【问题讨论】:
-
您可以使用此选项在
.readthedocs.yml文件中指定requirements.txt文件:requirements_file: path/to/requirements.txt
标签: python-sphinx read-the-docs