python install_error ai_generated true

ERROR: No matching distribution found for package==1.2.3

ID: python/pip-install-error-no-matching-distribution

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

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.x active — — —

Root Cause

The specified version of the package is not available on the configured index, or it is not compatible with the current Python version or platform.

generic

中文

指定的包版本在配置的索引上不可用,或者与当前 Python 版本或平台不兼容。

Workarounds

  1. 90% success
    pip index versions package
  2. 85% success
    pip install package==1.2.2
  3. 80% success
    pip install --index-url https://custom.pypi.org/simple package==1.2.3

Dead Ends

Common approaches that don't work:

  1. 90% fail

    Cache is not the issue; the version truly does not exist.

  2. 95% fail

    Upgrading pip does not create the missing version.

  3. 95% fail

    Force reinstall cannot install a non-existent distribution.