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

Managing dependencies on top of system site-packages #2038

Closed
fbergroth opened this issue Feb 28, 2024 · 3 comments
Closed

Managing dependencies on top of system site-packages #2038

fbergroth opened this issue Feb 28, 2024 · 3 comments
Labels
question Asking for clarification or support

Comments

@fbergroth
Copy link

Hi,

I'm currently working with the docker image l4t-pytorch, which already includes certain system libraries like torch==2.0.0a0+ec3941ad.nv23.2.

My goal is to add extra dependencies on top of this and manage them with uv, while pinning the preinstalled version of torch.

I'm trying to this via a venv with system-site-packages and declaring a dependency on torch==2.0.0a0, which fails since it can't resolve dependencies.

Is there any trick to do this or something I might have overlooked?

Thanks

@zanieb
Copy link
Member

zanieb commented Feb 28, 2024

@zanieb zanieb added the question Asking for clarification or support label Feb 28, 2024
@fbergroth
Copy link
Author

Thanks for having a look. I believe I can already work around the first of the two linked issues, and I'm not sure the last one applies.

My core issue seems to be that the version of torch already installed has a pre-release identifier (I don't think the local version identifier is the issue here). I'm trying to use the system version by pinning torch to this version (2.0.0a0), but uv pip compile fails since it can't find it in any package index. I'm not sure of the best way to handle this.

@fbergroth
Copy link
Author

I think the scenario is too odd and doesn't really make sense to support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Asking for clarification or support
Projects
None yet
Development

No branches or pull requests

2 participants