Skip to content

UV pip install requirements file breaks when it contains --trusted-host #10366

@MattTheCuber

Description

@MattTheCuber

I apologize if this is a duplicate issue. I searched #1339 pretty thoroughly as well as #6591.

If you run a command like uv pip install -r requirements.txt with a requirements file looking like this, it throws the error: error: Unexpected '-', expected '-c', '-e', '-r' or the start of a requirement at requirements.txt:1:1.

--trusted-host org.domain.com

custom_package
...

Metadata

Metadata

Assignees

Labels

compatibilityCompatibility with a specification or another toolgood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions