python install_error ai_generated true

ERROR: Could not find a version that satisfies the requirement somepkg>=2.0.0b1 (from versions: 1.9.0, 1.9.1) ERROR: No matching distribution found for somepkg>=2.0.0b1

ID: python/pip-pre-release-not-installed

Also available as: JSON · Markdown · 中文
80%Fix Rate
87%Confidence
0Evidence
2025-11-12First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.8 active — — —
3.9 active — — —
3.10 active — — —
3.11 active — — —
3.12 active — — —

Root Cause

pip excludes pre-release versions by default, so `>=2.0.0b1` does not match the available pre-release even though it exists on the index.

generic

中文

pip 默认排除预发布版本,因此即使索引上存在预发布版本,`>=2.0.0b1` 也不会匹配。

Workarounds

  1. 95% success
    pip install --pre 'somepkg>=2.0.0b1'
  2. 90% success
    pip install 'somepkg==2.0.0b1'

Dead Ends

Common approaches that don't work:

  1. 60% fail

    Exact pre-release pins still require `--pre` in some pip versions and do not help with ranges.

  2. 95% fail

    Trusted-host affects TLS, not version filtering.

  3. 98% fail

    Pre-release filtering is deterministic.