{
  "id": "python/pip-invalid-archive",
  "signature": "ERROR: Invalid archive: /path/to/package.tar.gz - Not a valid gzip file",
  "signature_zh": "错误：无效存档：/path/to/package.tar.gz - 不是有效的 gzip 文件",
  "regex": "ERROR:\\ Invalid\\ archive:\\ /path/to/package\\.tar\\.gz\\ \\-\\ Not\\ a\\ valid\\ gzip\\ file",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The downloaded archive is corrupted or not in the expected gzip format.",
  "root_cause_type": "generic",
  "root_cause_zh": "下载的存档已损坏或不是预期的 gzip 格式。",
  "versions": [
    {
      "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Re-downloading the same file from the same source",
      "why_fails": "If the source is corrupted, re-downloading won't help.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using a different decompression tool like 7zip",
      "why_fails": "The file itself is invalid, not a decompression issue.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Download the package from an alternative source",
      "success_rate": 0.85,
      "how": "Use a different PyPI mirror: pip install -i https://pypi.org/simple/ package",
      "condition": "",
      "sources": []
    },
    {
      "action": "Clear pip cache and retry",
      "success_rate": 0.8,
      "how": "Run: pip cache purge; then pip install package",
      "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-09",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}