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
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.
解决方案
-
90% 成功率
python -m venv venv && source venv/bin/activate && pip install --upgrade setuptools
-
80% 成功率
pip install --user --upgrade setuptools
-
70% 成功率
Install Python 3.12 and use its pip
无效尝试
常见但无效的做法:
-
70% 失败
May break system packages that depend on the old version.
-
80% 失败
Package may not work correctly.
-
60% 失败
May not be available or introduce other conflicts.