{
  "id": "pip/url-invalid-requirement-scheme",
  "signature": "ERROR: Invalid requirement: 'http://example.com/package.zip' - Expected file://, https://, or a valid package name.",
  "signature_zh": "错误：无效的需求：'http://example.com/package.zip' - 期望 file://、https:// 或有效的包名称。",
  "regex": "ERROR: Invalid requirement: 'http://[^']+' - Expected file://, https://, or a valid package name\\.",
  "domain": "pip",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "pip does not support plain HTTP URLs for package installation due to security reasons; only HTTPS, file://, or package names are allowed.",
  "root_cause_type": "generic",
  "root_cause_zh": "出于安全原因，pip 不支持使用纯 HTTP URL 安装包；只允许 HTTPS、file:// 或包名称。",
  "versions": [
    {
      "version": "pip 21.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "pip 22.0",
      "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 24.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The --trusted-host flag only affects index URLs, not direct URL requirements; the error remains.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Same validation applies to requirements files; pip rejects HTTP URLs everywhere.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The --no-deps flag does not change URL scheme validation; still fails.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Change the URL to HTTPS: pip install https://example.com/package.zip (if HTTPS is available).",
      "success_rate": 0.9,
      "how": "Change the URL to HTTPS: pip install https://example.com/package.zip (if HTTPS is available).",
      "condition": "",
      "sources": []
    },
    {
      "action": "Download the file manually and install from local: wget http://example.com/package.zip && pip install ./package.zip",
      "success_rate": 0.95,
      "how": "Download the file manually and install from local: wget http://example.com/package.zip && pip install ./package.zip",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a local file server with HTTPS or serve over file://: pip install file:///path/to/package.zip",
      "success_rate": 0.85,
      "how": "Use a local file server with HTTPS or serve over file://: pip install file:///path/to/package.zip",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Change the URL to HTTPS: pip install https://example.com/package.zip (if HTTPS is available).",
    "Download the file manually and install from local: wget http://example.com/package.zip && pip install ./package.zip",
    "Use a local file server with HTTPS or serve over file://: pip install file:///path/to/package.zip"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://pip.pypa.io/en/stable/topics/secure-installs/",
  "official_doc_section": null,
  "error_code": "ERROR",
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2023-05-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}