# ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
foo 1.0 requires bar>=2.0, but you have bar 1.5 which is incompatible.

- **ID:** `python/pip-target-directory-not-in-path`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A package was installed with --target or --ignore-installed, so pip's view of the environment is incomplete and it cannot detect the conflict during resolution.

## Version Compatibility

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

## Workarounds

1. **** (85% success)
   ```
   Inspect the conflict and pin compatible versions:
  pip check
  pip install 'bar>=2.0'
Then re-verify: pip check
   ```
2. **** (90% success)
   ```
   Reinstall the affected packages without --target/--ignore-installed into a clean venv:
  python -m venv .venv && source .venv/bin/activate
  pip install foo
   ```

## Dead Ends

- **** — Upgrading bar may break foo if foo's constraint is also unsatisfiable with the new bar; the root cause is the incomplete environment view. (60% fail)
- **** — No such flag; pip check has no ignore option. (95% fail)
