python
data_error
ai_generated
true
ValueError: invalid version number '1.0.0-beta'
ID: python/setuptools-invalid-version-string
80%Fix Rate
86%Confidence
0Evidence
2026-02-20First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
Root Cause
The version string does not conform to PEP 440 versioning scheme.
generic中文
版本字符串不符合 PEP 440 版本方案。
Workarounds
-
95% success Use PEP 440 compliant version
version='1.0.0b1'
-
80% success Use local version identifier
version='1.0.0+build.1'
Dead Ends
Common approaches that don't work:
-
Removing the pre-release tag
40% fail
Loses version information.
-
Using underscores instead of hyphens
50% fail
Still invalid.