{
  "id": "python/pip-invalid-metadata-missing-name",
  "signature": "ERROR: Invalid requirement: 'foo bar==1.0' (from line 3 of requirements.txt)\nHint: It looks like a path. File 'foo bar==1.0' does not exist.",
  "signature_zh": "错误：无效的需求：'foo bar==1.0'（来自 requirements.txt 第 3 行）。提示：看起来像路径。文件 'foo bar==1.0' 不存在。",
  "regex": "ERROR:\\ Invalid\\ requirement:\\ 'foo\\ bar==1\\.0'\\ \\(from\\ line\\ 3\\ of\\ requirements\\.txt\\)\\\nHint:\\ It\\ looks\\ like\\ a\\ path\\.\\ File\\ 'foo\\ bar==1\\.0'\\ does\\ not\\ exist\\.",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The requirements line contains an unquoted space or stray text, so pip cannot parse it as a requirement and falls back to interpreting it as a local path.",
  "root_cause_type": "generic",
  "root_cause_zh": "requirements 行包含未加引号的空格或多余文本，pip 无法将其解析为需求，于是回退为将其解释为本地路径。",
  "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": "Parsing behavior is stable; the malformed line still fails.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Adding a find-links path does not make the malformed requirement valid.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.94,
      "how": "# requirements.txt: foo==1.0\npython -c \"from packaging.requirements import Requirement; [Requirement(l.strip()) for l in open('requirements.txt') if l.strip()]\"\npip install -r requirements.txt",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "foo==1.0; python_version >= '3.9'",
      "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.83,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-27",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}