python
data_error
ai_generated
true
错误:未找到 README.md
error: README.md not found
ID: python/setuptools-readme-file-not-found
80%修复率
86%置信度
0证据数
2024-06-25首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.6 | active | — | — | — |
| 3.7 | active | — | — | — |
| 3.8 | active | — | — | — |
根因分析
setup.py 中的 long_description 引用了项目目录中不存在的文件。
English
The long_description in setup.py references a file that doesn't exist in the project directory.
解决方案
-
90% 成功率
touch README.md
-
95% 成功率
from pathlib import Path; this_directory = Path(__file__).parent; long_description = (this_directory / 'README.md').read_text()
无效尝试
常见但无效的做法:
-
20% 失败
May work but hides missing documentation.
-
40% 失败
May lose PyPI description; not always necessary.