Skip to content

Managing nVidia Runtime Libraries Downloads When Installing PyTorch via PDM #3154

Answered by frostming
lingkerio asked this question in Q&A
Discussion options

You must be logged in to vote
  • Is excluding these nVidia runtime libraries a safe practice when managing PyTorch with GPU support in a PDM project?
  • Are there any potential downsides or caveats I should be aware of when taking this approach?
  • Is there a better way to handle these dependencies without needing to exclude them manually in the PDM configuration?

The downloads is because the torch index doesn't contain necessary metadata in the HTML content. It can be only retrieved by downloading the file to disk. Plus, you are locking for all platforms so these linux-only dependencies will also be analyzed even not needed on your platform(Windows).

One potential downside is that if you are to deploy the app on Linux pla…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lingkerio
Comment options

@frostming
Comment options

Answer selected by lingkerio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants