python
config_error
ai_generated
true
ERROR: Package 'pkg' requires a different Python: 3.7.4 not in '>=3.8'
ID: python/pip-requires-python-not-satisfied
80%Fix Rate
87%Confidence
0Evidence
2024-03-28First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.7 | active | — | — | — |
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
Root Cause
The package's Requires-Python metadata excludes the current Python version.
generic中文
包的 Requires-Python 元数据排除了当前 Python 版本。
Workarounds
-
95% success
python3.8 -m venv venv && source venv/bin/activate && pip install pkg
-
80% success
pip install 'pkg<2.0'
Dead Ends
Common approaches that don't work:
-
80% fail
Only affects resolution for downloading; doesn't change the actual interpreter.
-
50% fail
May break other dependencies; not a quick fix.