python
install_error
ai_generated
true
WARNING: foo 1.0.0 does not provide the extra 'devtools'
ID: python/pip-extras-unknown-extra
80%Fix Rate
83%Confidence
0Evidence
2025-07-29First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.x | active | — | — | — |
Root Cause
Requesting an extra that isn't declared in the package metadata.
generic中文
请求了包元数据中未声明的额外项。
Workarounds
-
90% success
python -m pip show foo pip install "foo[dev]"
-
80% success
pip install pytest black # dependencies the extra would have pulled
Dead Ends
Common approaches that don't work:
-
80% fail
The extra simply doesn't exist in metadata; forcing does not create it.
-
60% fail
If 'all' extra is also undefined, same warning.