python data_error ai_generated true

错误:未找到 README.md

error: README.md not found

ID: python/setuptools-readme-file-not-found

其他格式: JSON · Markdown 中文 · English
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.

generic

解决方案

  1. 90% 成功率
    touch README.md
  2. 95% 成功率
    from pathlib import Path; this_directory = Path(__file__).parent; long_description = (this_directory / 'README.md').read_text()

无效尝试

常见但无效的做法:

  1. 20% 失败

    May work but hides missing documentation.

  2. 40% 失败

    May lose PyPI description; not always necessary.