python install_error ai_generated true

WARNING: foo 1.0.0 does not provide the extra 'devtools'

ID: python/pip-extras-unknown-extra

Also available as: JSON · Markdown · 中文
80%Fix Rate
83%Confidence
0Evidence
2025-07-29First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.x active

Root Cause

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

generic

中文

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

Workarounds

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

Dead Ends

Common approaches that don't work:

  1. 80% fail

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

  2. 60% fail

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