python config_error ai_generated true

pkg_resources.VersionConflict:(setuptools 58.0.0(/usr/lib/python3/dist-packages),需求解析'setuptools>=60.0')

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

ID: python/setuptools-version-conflict

其他格式: JSON · Markdown 中文 · English
80%修复率
86%置信度
0证据数
2024-05-18首次发现

版本兼容性

版本状态引入弃用备注
3.9 active

根因分析

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

English

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

generic

解决方案

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

无效尝试

常见但无效的做法:

  1. 70% 失败

    May break system packages that depend on the old version.

  2. 80% 失败

    Package may not work correctly.

  3. 60% 失败

    May not be available or introduce other conflicts.