python install_error ai_generated true

ERROR: Could not find a version that satisfies the requirement <package>==1.2.3 (from versions: none) ERROR: No matching distribution found for <package>==1.2.3

ID: python/pip-no-matching-distribution-platform

Also available as: JSON · Markdown · 中文
80%Fix Rate
88%Confidence
0Evidence
2024-02-01First Seen

Version Compatibility

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

Root Cause

The exact version does not exist for the current platform/Python combination, or the package name is misspelled, or a private index is misconfigured (wrong --index-url).

generic

中文

精确版本不存在于当前平台/Python 组合,或包名拼写错误,或私有索引配置错误(--index-url 不对)。

Workarounds

  1. 85% success
    pip index versions <package>
    pip debug --verbose  # shows compatible tags
  2. 80% success
    pip config list
    pip install --index-url https://pypi.org/simple <package>==1.2.3

Dead Ends

Common approaches that don't work:

  1. 85% fail

    Upgrading pip won't create a distribution that doesn't exist for your platform.

  2. 95% fail

    --no-index disables PyPI entirely, guaranteeing failure unless a local wheel is present.