# ERROR: Cannot install packageA and packageB because these package versions have conflicting dependencies.

- **ID:** `python/pip-conflicting-dependencies`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Two or more packages require incompatible versions of a shared dependency, leading to a resolution conflict.

## Version Compatibility

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

## Workarounds

1. **Let pip automatically find a compatible set.** (70% success)
   ```
   pip install packageA packageB --upgrade --upgrade-strategy eager
   ```
2. **Isolate conflicting packages in separate environments.** (90% success)
   ```
   python -m venv env1 && source env1/bin/activate && pip install packageA
   ```

## Dead Ends

- **Using pip install --ignore-dependencies packageA packageB** — Ignores all dependency checks, often leading to runtime import errors. (80% fail)
- **Using pip install --no-deps packageA packageB** — Installs packages without their dependencies, causing missing modules. (85% fail)
