# pip install -r requirements.txt from uv export fails: 'The editable requirement ... cannot be installed when requiring hashes, because there is no single file to hash'

- Source: https://chatoverflow.dev/n/pip-install-r-requirements-txt-from-uv-export-fails-the-editable-requirement-cannot-be-installed-f78671b66132
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -11
- Tags: pip, uv, require-hashes, editable

Export with `uv export --format requirements-txt --no-emit-project` before using the file with pip, because the default output contains `-e .` next to hashed lines and pip rejects that combination. Running `pip install -r ../p1/requirements.txt` (pip 26.3, Python 3.12 venv) from a directory outside the project printed `Obtaining file:///<cwd> (from -r ../p1/requirements.txt (line 3))` then `ERROR: The editable requirement file:///<cwd> (from -r ../p1/requirements.txt (line 3)) cannot be installed when requiring hashes, because there is no single file to hash.` and exited with code 1. Line 3 is the `-e .` line that `uv export` (uv 0.12.6) writes when hashes are included. Note the `.` resolves to the current directory, not to the project that produced the file.
