python install_error ai_generated true

错误:无效命令 'egg_info'

error: invalid command 'egg_info'

ID: python/setuptools-invalid-command-egg-info

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

版本兼容性

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

根因分析

构建环境中未安装 setuptools,或被不兼容的 distutils 遮蔽。

English

setuptools not installed or shadowed by an incompatible distutils in the build environment.

generic

解决方案

  1. 95% 成功率
    python -m pip install -U pip setuptools wheel
  2. 85% 成功率
    python -m pip install . --use-pep517

无效尝试

常见但无效的做法:

  1. 90% 失败

    Same missing setuptools command; fails identically.

  2. 85% 失败

    Overkill; the issue is the packaging toolchain, not the interpreter.