-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Issue with Installing Torch-TensorRT via uv add
Command with External Repository Links
#7735
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
Comments
It seems that torch-tensorrt doesn't publish wheels for Python 3.12 (only up to 3.11), so we fall back to the 0.0.0.post1 dummy package. On the github releases page there's a Python 3.12 wheel then (https://github.com/pytorch/TensorRT/releases/download/v2.4.0/torch_tensorrt-2.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_34_x86_64.whl). While I'm open to extending uv's find links parser to work more like pip, i'm hesitant to specifically support github releases: The page at https://github.com/pytorch/TensorRT/releases only has a few recent releases, which means that |
Thank you for your feedback. You raise a good point about the limitations of GitHub releases. Indeed, since Hence, it would be wise to consider a more robust approach to managing GitHub releases. This could prove particularly useful for those dependent on specific versions not available on PyPI or other simple HTML pages. Although there's a slight risk of file removal, it's unlikely for widely used libraries such as Torch-TensorRT. I understand if you find additional processing unnecessary. Thank you for explaining that Torch-TensorRT does not have a build for version 3.12 on PyPI, and it's not just a general placeholder. With this in mind, I'm thinking of downgrading to version 3.11 as a temporary workaround. If you think this issue warrants further discussion, please feel free to leave it open. Otherwise, we can consider it resolved. |
torch-tensorrt is available on index https://download.pytorch.org/whl/cu124 so you can install it using --extra-index-url you also need to use --index-strategy unsafe-best-match because it needs packaging>23 and in the pytorch index only packaging==22.0 is available (why they release 3rd party wheels?? same problem with pillow which is not up to date with upstream) |
Kind of having the same issue with https://whl.smartgic.io/.
Not sure how to fix this. |
In the source of https://whl.smartgic.io/, it appears the anchor that uv is complaining about does have an href, but the value is empty string. <body onload="initPage()">
<header>
<div class="wrapper">
<div class="breadcrumbs">Folder Path</div>
<h1>
<a href="">/</a>
</h1> If I'm reading the source of Python pip correctly, then it ignores empty or missing href attributes - skipping over them
So if it was desired |
Ok thanks. I can fix it. |
## Summary Closes #7735. ## Test Plan `cargo run pip install -f https://whl.smartgic.io/ ggwave --python-platform linux` (fails prior to this PR; passes after)
Platform: Ubuntu 20.04
Version: uv 0.4.16
Description:
When attempting to install Torch-TensorRT using the
uv add
command, I encountered an error. The command I ran was:The following error was returned:
Installing the package manually with
pip
works perfectly fine:However, when trying to use
uv add
with the same link, the following error occurs:It seems that
uv
is unable to properly handle external--find-links
URLs when installing from sources like GitHub, as it encounters an unexpected HTML response.The text was updated successfully, but these errors were encountered: