python install_error ai_generated true

错误:找不到与 package==1.2.3 匹配的发行版

ERROR: No matching distribution found for package==1.2.3

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

其他格式: JSON · Markdown 中文 · English
80%修复率
88%置信度
0证据数
2024-07-22首次发现

版本兼容性

版本状态引入弃用备注
3.x active — — —

根因分析

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

English

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

解决方案

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

无效尝试

常见但无效的做法:

  1. 90% 失败

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

  2. 95% 失败

    Upgrading pip does not create the missing version.

  3. 95% 失败

    Force reinstall cannot install a non-existent distribution.