python install_error ai_generated true

错误:命令以退出状态 1 出错:python setup.py egg_info 请查看日志以获取完整命令输出。

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

ID: python/pip-egg-info-error

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

版本兼容性

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

根因分析

包的 setup.py 在 egg_info 生成期间失败,通常是由于缺少依赖项或语法错误。

English

The package's setup.py fails during egg_info generation, often due to missing dependencies or syntax errors.

generic

解决方案

  1. 85% 成功率 Install required build dependencies manually
    pip install setuptools wheel && pip install mypackage
  2. 75% 成功率 Use a pre-built wheel if available
    pip install mypackage --only-binary :all:

无效尝试

常见但无效的做法:

  1. Reinstalling the package with --no-cache-dir 80% 失败

    Caching is not the root cause; the setup.py itself is broken.

  2. Installing in a different directory 90% 失败

    The error is inherent to the package code, not the installation path.