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
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.
解决方案
-
90% 成功率
pip index versions package
-
85% 成功率
pip install package==1.2.2
-
80% 成功率
pip install --index-url https://custom.pypi.org/simple package==1.2.3
无效尝试
常见但无效的做法:
-
90% 失败
Cache is not the issue; the version truly does not exist.
-
95% 失败
Upgrading pip does not create the missing version.
-
95% 失败
Force reinstall cannot install a non-existent distribution.