{
  "id": "pip/pip-conf-option-error",
  "signature": "ERROR: Option '--trusted-host' is not allowed in the pip.conf file. Use the format: trusted-host = pypi.org\nfiles.pythonhosted.org",
  "signature_zh": "错误：pip.conf 文件中不允许使用选项 '--trusted-host'。请使用格式：trusted-host = pypi.org\nfiles.pythonhosted.org",
  "regex": "ERROR: Option '--[^']+' is not allowed in the pip\\.conf file\\. Use the format: [a-z-]+ = [^\\n]+",
  "domain": "pip",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The pip configuration file (pip.conf/pip.ini) contains command-line-style options (e.g., --trusted-host) instead of the correct INI-style key-value format.",
  "root_cause_type": "generic",
  "root_cause_zh": "pip 配置文件（pip.conf/pip.ini）包含命令行样式的选项（如 --trusted-host），而不是正确的 INI 风格键值对格式。",
  "versions": [
    {
      "version": "pip 22.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "pip 23.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "pip 23.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This works temporarily but does not fix the config file; the error persists on next pip command reading the config.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Still uses the CLI-style prefix; config expects bare key names without dashes.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Removes the error but also removes all other valid configurations, potentially breaking other settings.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Edit pip.conf to use correct INI format:\n[global]\ntrusted-host = pypi.org\nfiles.pythonhosted.org",
      "success_rate": 0.95,
      "how": "Edit pip.conf to use correct INI format:\n[global]\ntrusted-host = pypi.org\nfiles.pythonhosted.org",
      "condition": "",
      "sources": []
    },
    {
      "action": "Remove the offending lines and use environment variables instead: export PIP_TRUSTED_HOST=\"pypi.org files.pythonhosted.org\"",
      "success_rate": 0.9,
      "how": "Remove the offending lines and use environment variables instead: export PIP_TRUSTED_HOST=\"pypi.org files.pythonhosted.org\"",
      "condition": "",
      "sources": []
    },
    {
      "action": "Validate config with: pip config list --global (or --user/--site) to see current effective settings.",
      "success_rate": 0.85,
      "how": "Validate config with: pip config list --global (or --user/--site) to see current effective settings.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Edit pip.conf to use correct INI format:\n[global]\ntrusted-host = pypi.org\nfiles.pythonhosted.org",
    "Remove the offending lines and use environment variables instead: export PIP_TRUSTED_HOST=\"pypi.org files.pythonhosted.org\"",
    "Validate config with: pip config list --global (or --user/--site) to see current effective settings."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://pip.pypa.io/en/stable/topics/configuration/",
  "official_doc_section": null,
  "error_code": "ERROR",
  "verification_tier": "ai_generated",
  "confidence": 0.9,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2023-04-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}