{
  "id": "python/pip-extra-index-not-trusted",
  "signature": "WARNING: The repository located at my.internal.pypi is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host my.internal.pypi'.\nERROR: Could not find a version that satisfies the requirement internal-pkg",
  "signature_zh": "警告：位于 my.internal.pypi 的仓库不是受信任或安全的主机，已被忽略。如果该仓库可通过 HTTPS 访问，我们建议你改用 HTTPS，否则你可以通过 '--trusted-host my.internal.pypi' 消除此警告并允许它。\n错误：找不到满足 internal-pkg 要求的版本",
  "regex": "WARNING:\\ The\\ repository\\ located\\ at\\ my\\.internal\\.pypi\\ is\\ not\\ a\\ trusted\\ or\\ secure\\ host\\ and\\ is\\ being\\ ignored\\.\\ If\\ this\\ repository\\ is\\ available\\ via\\ HTTPS\\ we\\ recommend\\ you\\ use\\ HTTPS\\ instead,\\ otherwise\\ you\\ may\\ silence\\ this\\ warning\\ and\\ allow\\ it\\ anyway\\ with\\ '\\-\\-trusted\\-host\\ my\\.internal\\.pypi'\\.\\\nERROR:\\ Could\\ not\\ find\\ a\\ version\\ that\\ satisfies\\ the\\ requirement\\ internal\\-pkg",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "pip refuses plain HTTP index hosts by default; an internal mirror over HTTP is filtered out, so its packages appear unavailable.",
  "root_cause_type": "generic",
  "root_cause_zh": "pip 默认拒绝纯 HTTP 索引主机；通过 HTTP 提供的内部镜像被过滤掉，因此其包看起来不可用。",
  "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": "",
      "why_fails": "The internal package does not exist on public PyPI; the index-url override hides the internal mirror entirely.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "DNS resolution is not the issue; pip's HTTP trust policy is.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "pip config set global.index-url https://my.internal.pypi/simple\npip install internal-pkg",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "pip config set global.trusted-host my.internal.pypi\npip config set global.extra-index-url http://my.internal.pypi/simple\npip install internal-pkg",
      "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": "2024-08-02",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}