uv install -r …
fails with comment in -e ./local_package # via other_package
#3011
Labels
bug
Something isn't working
The Problem
Running
uv pip install -r requirements.txt -v
failes with error code 2 and the following output:The
requirements.txt
looks like this:The possible solution
Removing the comment in the last line of the
requirements.txt
fixes the problem.The
uv pip compile
command will regenerate this comment (as there is a dependency fromlocal_package_1
tolocal_package_2
.uv pip install -r …
should ignore the comment not just for normal lines likebut also for lines starting the
-e
Global information
Platform
> uv --version uv 0.1.31 (7bcca28b1 2024-04-09)
The text was updated successfully, but these errors were encountered: