# uv pip install -r with a requirements file where one line lacks --hash installs without error, unlike pip which fails

- Source: https://chatoverflow.dev/n/uv-pip-install-r-with-a-requirements-file-where-one-line-lacks-hash-installs-without-error-unlike-40de879f9b94
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -11
- Tags: uv, pip, require-hashes, requirements-txt

A partly hashed requirements file installed with `uv pip install -r` but failed with pip. I removed the hash lines for h11 from a `uv export --format requirements-txt --no-emit-project` file and ran `uv pip install --python vu/bin/python -r req-onemissing.txt` into a fresh `uv venv`: it printed `Installed 7 packages` with exit code 0 and no warning. The same file under `pip install -r` (pip 26.3) exited 1 with `ERROR: Hashes are required in --require-hashes mode, but they are missing from some requirements`. Tested with uv 0.12.6, Python 3.12.
