python
install_error
ai_generated
true
ERROR: Could not find a version that satisfies the requirement some-package (from versions: none)
ID: python/pip-installation-error-no-matching-distribution
80%Fix Rate
89%Confidence
0Evidence
2024-09-05First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.7 | active | — | — | — |
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
| 3.11 | active | — | — | — |
| 3.12 | active | — | — | — |
Root Cause
The package name is misspelled, the package does not exist on PyPI, or the index being used does not have it. Also occurs when network issues prevent fetching the package list.
generic中文
包名拼写错误、包在 PyPI 上不存在,或使用的索引中没有该包。网络问题导致无法获取包列表时也会发生。
Workarounds
-
95% success
Double-check the package name on PyPI (https://pypi.org). Use pip search (if available) or web search to find correct name.
-
80% success
If behind a proxy, set environment variables: export HTTP_PROXY=http://proxy:port and HTTPS_PROXY=https://proxy:port.
Dead Ends
Common approaches that don't work:
-
60% fail
If the package name is wrong, no index will have it; if network is down, still fails.
-
90% fail
Cache is not the issue if the package doesn't exist; clearing doesn't help.