{
  "id": "python/uvicorn-loop-uvloop-install-failed",
  "signature": "ImportError: uvloop requires Python 3.8 or higher",
  "signature_zh": "ImportError: uvloop 需要 Python 3.8 或更高版本",
  "regex": "ImportError:\\ uvloop\\ requires\\ Python\\ 3\\.8\\ or\\ higher",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "uvloop wheel is missing for the current Python version or platform, or a stale uvloop build is being imported.",
  "root_cause_type": "generic",
  "root_cause_zh": "当前 Python 版本或平台缺少 uvloop wheel，或正在导入陈旧的 uvloop 构建。",
  "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": "May install a wheel built for a different Python ABI; import still fails.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Auto still prefers uvloop on Linux when installed; the import error persists.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "uvicorn app:app --loop asyncio",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "python -c 'import sys; print(sys.version)'\npip install --only-binary=:all: 'uvloop>=0.19'",
      "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.82,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-10-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}