python
install_error
ai_generated
true
警告:foo 1.0.0 不提供额外项 'devtools'
WARNING: foo 1.0.0 does not provide the extra 'devtools'
ID: python/pip-extras-unknown-extra
80%修复率
83%置信度
0证据数
2025-07-29首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.x | active | — | — | — |
根因分析
请求了包元数据中未声明的额外项。
English
Requesting an extra that isn't declared in the package metadata.
解决方案
-
90% 成功率
python -m pip show foo pip install "foo[dev]"
-
80% 成功率
pip install pytest black # dependencies the extra would have pulled
无效尝试
常见但无效的做法:
-
80% 失败
The extra simply doesn't exist in metadata; forcing does not create it.
-
60% 失败
If 'all' extra is also undefined, same warning.