python config_error ai_generated true

pkg_resources.VersionConflict: (setuptools 58.0.0 (/usr/lib/python3/dist-packages), Requirement.parse('setuptools>=60.0'))

ID: python/setuptools-version-conflict

Also available as: JSON · Markdown · 中文
80%Fix Rate
86%Confidence
0Evidence
2024-05-18First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.9 active

Root Cause

A package requires a newer setuptools version than what is installed, but the older version is locked by the system.

generic

中文

某个包需要比已安装的setuptools版本更新的版本,但旧版本被系统锁定。

Workarounds

  1. 90% success
    python -m venv venv && source venv/bin/activate && pip install --upgrade setuptools
  2. 80% success
    pip install --user --upgrade setuptools
  3. 70% success
    Install Python 3.12 and use its pip

Dead Ends

Common approaches that don't work:

  1. 70% fail

    May break system packages that depend on the old version.

  2. 80% fail

    Package may not work correctly.

  3. 60% fail

    May not be available or introduce other conflicts.