python
install_error
ai_generated
true
错误:找不到满足需求 <package>==1.2.3 的版本(可用版本:无) 错误:找不到匹配的发行版 <package>==1.2.3
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
80%修复率
88%置信度
0证据数
2024-02-01首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
| 3.11 | active | — | — | — |
| 3.12 | active | — | — | — |
根因分析
精确版本不存在于当前平台/Python 组合,或包名拼写错误,或私有索引配置错误(--index-url 不对)。
English
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).
解决方案
-
85% 成功率
pip index versions <package> pip debug --verbose # shows compatible tags
-
80% 成功率
pip config list pip install --index-url https://pypi.org/simple <package>==1.2.3
无效尝试
常见但无效的做法:
-
85% 失败
Upgrading pip won't create a distribution that doesn't exist for your platform.
-
95% 失败
--no-index disables PyPI entirely, guaranteeing failure unless a local wheel is present.