python data_error ai_generated true

ValueError: invalid version number '1.0.0-beta'

ID: python/setuptools-invalid-version-string

Also available as: JSON · Markdown · 中文
80%Fix Rate
86%Confidence
0Evidence
2026-02-20First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.8 active
3.9 active

Root Cause

The version string does not conform to PEP 440 versioning scheme.

generic

中文

版本字符串不符合 PEP 440 版本方案。

Workarounds

  1. 95% success Use PEP 440 compliant version
    version='1.0.0b1'
  2. 80% success Use local version identifier
    version='1.0.0+build.1'

Dead Ends

Common approaches that don't work:

  1. Removing the pre-release tag 40% fail

    Loses version information.

  2. Using underscores instead of hyphens 50% fail

    Still invalid.