{
  "id": "python/pip-json-decoding-error",
  "signature": "ERROR: pip._vendor.requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)",
  "signature_zh": "错误：pip._vendor.requests.exceptions.JSONDecodeError：期望值：第1行第1列（字符0）",
  "regex": "ERROR:\\ pip\\._vendor\\.requests\\.exceptions\\.JSONDecodeError:\\ Expecting\\ value:\\ line\\ 1\\ column\\ 1\\ \\(char\\ 0\\)",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "Pip receives an empty or non-JSON response from a package index, often due to network issues or misconfigured index URL.",
  "root_cause_type": "generic",
  "root_cause_zh": "pip 从包索引收到空响应或非 JSON 响应，通常是由于网络问题或索引 URL 配置错误。",
  "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": "Retrying with the same index URL",
      "why_fails": "The index URL may be broken; retries won't fix it.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using a different HTTP method like POST",
      "why_fails": "Pip uses GET; changing method is not supported.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check the index URL for correctness",
      "success_rate": 0.9,
      "how": "Run: pip install -i https://pypi.org/simple/ package (ensure URL ends with /simple)",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a different index or mirror",
      "success_rate": 0.85,
      "how": "Run: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 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": "2025-02-14",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}