# ModuleNotFoundError: No module named 'uvloop'

- **ID:** `python/uvloop-import-error`
- **Domain:** python
- **Category:** module_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

uvloop is not installed in the active environment, or it is installed for a different Python interpreter than the one running the app (common with venvs and multi-version setups).

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## Workarounds

1. **** (92% success)
   ```
   python -c 'import sys; print(sys.executable)'
python -m pip install uvloop
python -c 'import uvloop; print(uvloop.__version__)'
   ```
2. **** (90% success)
   ```
   try:
    import uvloop
    uvloop.install()
except ImportError:
    pass  # use default asyncio loop
   ```

## Dead Ends

- **** — Installs into the system Python, not the venv, so the app still cannot import it. (80% fail)
- **** — Mixes incompatible ABI builds and typically produces ImportError on the C extension. (85% fail)
