{
  "id": "python/pip-extra-index-url-invalid",
  "signature": "ERROR: 403 Client Error: Forbidden for url: https://private-pypi.example.com/simple/mypackage/",
  "signature_zh": "错误：403 客户端错误：禁止访问 url：https://private-pypi.example.com/simple/mypackage/",
  "regex": "ERROR:\\ 403\\ Client\\ Error:\\ Forbidden\\ for\\ url:\\ https://private\\-pypi\\.example\\.com/simple/mypackage/",
  "domain": "python",
  "category": "auth_error",
  "subcategory": null,
  "root_cause": "The extra index URL requires authentication or is not accessible from the current network.",
  "root_cause_type": "generic",
  "root_cause_zh": "额外的索引 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"
    },
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Using --trusted-host without credentials",
      "why_fails": "Trusted-host only bypasses SSL verification, not authentication.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Adding the URL to pip.conf without credentials",
      "why_fails": "pip still needs authentication for private repositories.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Provide credentials in the index URL",
      "success_rate": 0.85,
      "how": "pip install --extra-index-url https://username:password@private-pypi.example.com/simple mypackage",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a .netrc file for authentication",
      "success_rate": 0.9,
      "how": "echo 'machine private-pypi.example.com login username password password' >> ~/.netrc && chmod 600 ~/.netrc",
      "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-11-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}