{
  "id": "python/pip-invalid-archive-format",
  "signature": "ERROR: Invalid archive format: /tmp/pip-install-xxx/package.tar.gz",
  "signature_zh": "错误：无效的归档格式：/tmp/pip-install-xxx/package.tar.gz",
  "regex": "ERROR:\\ Invalid\\ archive\\ format:\\ /tmp/pip\\-install\\-xxx/package\\.tar\\.gz",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The downloaded package archive is corrupted or not a valid tar.gz file.",
  "root_cause_type": "generic",
  "root_cause_zh": "下载的包归档文件损坏或不是有效的tar.gz文件。",
  "versions": [
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Re-running pip without cache",
      "why_fails": "Redownloads same corrupted file from mirror if issue persists.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Manually extracting archive",
      "why_fails": "Archive is corrupt; extraction fails.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Clear pip cache and retry with different index",
      "success_rate": 0.85,
      "how": "pip cache purge\npip install package -i https://pypi.org/simple/",
      "condition": "",
      "sources": []
    },
    {
      "action": "Download and install from a local wheel",
      "success_rate": 0.8,
      "how": "pip download package\npip install ./package.whl",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-11-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}