# ERROR: The user requested package==1.0 but package==2.0 is available on the extra index URL

- **ID:** `python/pip-extra-index-url-conflict`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

When using multiple indexes, pip may find a different version on an extra index and conflict with the specified version.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.11 | active | — | — |

## Workarounds

1. **** (85% success)
   ```
   pip install --index-url https://main.index package==1.0
   ```
2. **** (80% success)
   ```
   pip install --extra-index-url https://extra.index package==1.0
   ```
3. **** (90% success)
   ```
   echo 'package==1.0' > constraints.txt && pip install -c constraints.txt package
   ```

## Dead Ends

- **** — May lose access to needed packages. (60% fail)
- **** — Disables all indexes, may not find package. (70% fail)
- **** — Doesn't resolve version conflict. (80% fail)
