# sqlalchemy.exc.NoSuchModuleError: 无法加载插件：sqlalchemy.dialects:postgresql.psycopg3

- **ID:** `python/sqlalchemy-connection-string-missing-driver`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

指定的数据库驱动程序未安装或未被 SQLAlchemy 识别。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 1.4.x | active | — | — |
| 2.0.x | active | — | — |

## 解决方案

1. **** (95% 成功率)
   ```
   Install the correct driver: pip install psycopg2-binary or pip install psycopg (for v3)
   ```
2. **** (90% 成功率)
   ```
   Use the correct dialect string: 'postgresql+psycopg2://user:pass@host/db'
   ```

## 无效尝试

- **** — Defaults to psycopg2; if that's not installed, it fails. (80% 失败率)
- **** — Missing dependency. (90% 失败率)
