python
config_error
ai_generated
true
错误:'setuptools' 版本 '60.0.0' 无效:无效版本
error: 'setuptools' version '60.0.0' is invalid: invalid version
ID: python/setuptools-version-parse-error
80%修复率
85%置信度
0证据数
2024-09-14首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.x | active | — | — | — |
根因分析
setup.py 或 pyproject.toml 中的版本字符串不符合 PEP 440,导致 setuptools 拒绝它。
English
The version string in setup.py or pyproject.toml does not conform to PEP 440, causing setuptools to reject it.
解决方案
-
95% 成功率
version='1.0.0' # instead of '1.0.0-beta'
-
90% 成功率
pip install setuptools_scm; in pyproject.toml: [tool.setuptools_scm]
无效尝试
常见但无效的做法:
-
70% 失败
May not reflect the actual version; could cause confusion or dependency issues.
-
90% 失败
setuptools will not proceed with an invalid version; build fails.