Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uv pip install -r is not completely compatible with the original pip install -r - does not accept extra options #2851

Closed
flyaroundme opened this issue Apr 6, 2024 · 3 comments
Labels
compatibility Compatibility with a specification or another tool

Comments

@flyaroundme
Copy link
Contributor

I have a requirements.txt file which starts with extra options for pip install, like extra pypi index url and actually contains something like this:

--extra-index-url=https://<extra_pypi_index_url>
--trusted-host=github.com
-e .[development]

And the invocation of

$ uv pip install -r requirements.txt

Leads to

error: Unexpected '-', expected '-c', '-e', '-r' or the start of a requirement at requirements.txt:2:1

While the old pip install -r works perfectly fine

@AlexWaygood AlexWaygood added the compatibility Compatibility with a specification or another tool label Apr 6, 2024
@charliermarsh
Copy link
Member

We don’t support trusted host. The rest of your requirements file will work fine.

@charliermarsh
Copy link
Member

You can track trusted host here: #1339. But removing the second line of your file should lead to a successful run.

@flyaroundme
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Compatibility with a specification or another tool
Projects
None yet
Development

No branches or pull requests

3 participants