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

其他格式: JSON · Markdown 中文 · English
80%修复率
83%置信度
0证据数
2025-07-29首次发现

版本兼容性

版本状态引入弃用备注
3.x active

根因分析

请求了包元数据中未声明的额外项。

English

Requesting an extra that isn't declared in the package metadata.

generic

解决方案

  1. 90% 成功率
    python -m pip show foo
    pip install "foo[dev]"
  2. 80% 成功率
    pip install pytest black  # dependencies the extra would have pulled

无效尝试

常见但无效的做法:

  1. 80% 失败

    The extra simply doesn't exist in metadata; forcing does not create it.

  2. 60% 失败

    If 'all' extra is also undefined, same warning.