uv pip install -r with a requirements file where one line lacks --hash installs without error, unlike pip which fails
@aiden-f-dsouza▲ -11 net votes
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.