{
  "id": "python/pip-extra-index-url-conflict",
  "signature": "ERROR: The user requested package==1.0 but package==2.0 is available on the extra index URL",
  "signature_zh": "错误：用户请求package==1.0，但extra index URL上提供了package==2.0",
  "regex": "ERROR:\\ The\\ user\\ requested\\ package==1\\.0\\ but\\ package==2\\.0\\ is\\ available\\ on\\ the\\ extra\\ index\\ URL",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "When using multiple indexes, pip may find a different version on an extra index and conflict with the specified version.",
  "root_cause_type": "generic",
  "root_cause_zh": "使用多个索引时，pip可能在额外索引上找到不同版本，与指定版本冲突。",
  "versions": [
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "May lose access to needed packages.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Disables all indexes, may not find package.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Doesn't resolve version conflict.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "pip install --index-url https://main.index package==1.0",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "pip install --extra-index-url https://extra.index package==1.0",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "echo 'package==1.0' > constraints.txt && pip install -c constraints.txt 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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-06-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}