{
  "id": "python/pip-setup-py-egg-info-failed",
  "signature": "error: can't copy 'PKG-INFO': doesn't exist or not a regular file",
  "signature_zh": "错误：无法复制 'PKG-INFO'：不存在或不是常规文件",
  "regex": "error:\\ can't\\ copy\\ 'PKG\\-INFO':\\ doesn't\\ exist\\ or\\ not\\ a\\ regular\\ file",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The source distribution is missing the PKG-INFO file, often due to incomplete sdist creation or a corrupted download. setuptools expects this file during installation.",
  "root_cause_type": "generic",
  "root_cause_zh": "源代码分发包缺少 PKG-INFO 文件，通常是由于 sdist 创建不完整或下载损坏导致。setuptools 在安装过程中需要此文件。",
  "versions": [
    {
      "version": "3.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "If PKG-INFO is missing from the sdist, egg_info cannot generate it without the proper source files.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The issue is with the package source, not setuptools itself.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.8,
      "how": "Download the package from PyPI manually and inspect the tarball; if corrupted, re-download. Alternatively, install from a wheel if available: pip install package.whl.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Install directly from the source repository: pip install git+https://github.com/user/repo.git.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.82,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-07-22",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}