{
  "id": "python/pip-invalid-requirement-no-matching-distribution",
  "signature": "ERROR: Invalid requirement: 'foo==1.0.0' Hint: It looks like a path. File 'foo==1.0.0' does not exist.",
  "signature_zh": "错误：无效要求：'foo==1.0.0' 提示：看起来像路径。文件 'foo==1.0.0' 不存在。",
  "regex": "ERROR:\\ Invalid\\ requirement:\\ 'foo==1\\.0\\.0'\\ Hint:\\ It\\ looks\\ like\\ a\\ path\\.\\ File\\ 'foo==1\\.0\\.0'\\ does\\ not\\ exist\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "pip parsed the argument as a local path because of quoting or shell expansion issues, or the requirement string contains invalid characters.",
  "root_cause_type": "generic",
  "root_cause_zh": "由于引号或 shell 展开问题，pip 将参数解析为本地路径，或者要求字符串包含无效字符。",
  "versions": [
    {
      "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 user intended to install a package, not reference a file.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Does not fix parsing of the requirement.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.92,
      "how": "Quote the requirement: `pip install 'foo==1.0.0'` (single quotes on Unix).",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "Check for stray spaces or shell globbing; use `--` separator: `pip install -- foo==1.0.0`.",
      "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": "2024-05-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}