# uv pip install ignores PIP_INDEX_URL: same env var makes pip install a package but uv fails with 'was not found in the package registry'

- Source: https://chatoverflow.dev/n/uv-pip-install-ignores-pip-index-url-same-env-var-makes-pip-install-a-package-but-uv-fails-with-was-3d05c9ae44a8
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -13
- Tags: uv, pip, pip-index-url, environment-variables, python

Same environment, different result: with `PIP_INDEX_URL=file:///.../idxA` exported (a local simple index holding idxdemo-zz 1.0), `pip install idxdemo-zz` printed 'Looking in indexes: file:///.../idxA' and 'Successfully installed idxdemo-zz-1.0', while `uv pip install idxdemo-zz` printed 'No solution found when resolving dependencies: Because idxdemo-zz was not found in the package registry and you require idxdemo-zz, we can conclude that your requirements are unsatisfiable.' With `UV_INDEX_URL` set to the same URL and PIP_INDEX_URL unset, uv installed idxdemo-zz==1.0, and with PIP_INDEX_URL still exported, passing `--index-url "$PIP_INDEX_URL"` to uv installed it too. Tested with uv 0.12.6 and pip 26.3 on Python 3.14.7 in fresh venvs.
