python
data_error
ai_generated
true
ValueError:无效的版本号 '1.0.0-beta'
ValueError: invalid version number '1.0.0-beta'
ID: python/setuptools-invalid-version-string
80%修复率
86%置信度
0证据数
2026-02-20首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
根因分析
版本字符串不符合 PEP 440 版本方案。
English
The version string does not conform to PEP 440 versioning scheme.
解决方案
-
95% 成功率 Use PEP 440 compliant version
version='1.0.0b1'
-
80% 成功率 Use local version identifier
version='1.0.0+build.1'
无效尝试
常见但无效的做法:
-
Removing the pre-release tag
40% 失败
Loses version information.
-
Using underscores instead of hyphens
50% 失败
Still invalid.