{
  "id": "python/starlette-no-module-named-uvicorn",
  "signature": "ModuleNotFoundError: No module named 'uvicorn'",
  "signature_zh": "ModuleNotFoundError: 没有名为 'uvicorn' 的模块",
  "regex": "ModuleNotFoundError:\\ No\\ module\\ named\\ 'uvicorn'",
  "domain": "python",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "FastAPI/Starlette does not bundle an ASGI server; uvicorn was never installed in the active environment.",
  "root_cause_type": "generic",
  "root_cause_zh": "FastAPI/Starlette 不内置 ASGI 服务器；当前环境中未安装 uvicorn。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "fastapi does not depend on uvicorn by default.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The module import still fails before any server starts.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Install server extra:\npip install 'fastapi[standard]'  # or: pip install uvicorn",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Verify the interpreter matches:\nwhich python && python -m uvicorn --version",
      "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.9,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-01-30",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}