-
Notifications
You must be signed in to change notification settings - Fork 7k
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
CPU version of torchvision requires non-CPU version of torch #5393
Comments
@iamhatesz Yep, you are right. I'm getting the same error, the only thing is how PyTorch team is managing release and packaging for vision. |
@iamhatesz check this python-poetry/poetry#4231 (comment) |
Hey! Any update on this? Seems like a simple thing to fix, but produces a lot of issues with CPU-only wheels on CI pipelines. |
This appears to be what you're looking for: pytorch/pytorch#26340 (comment) We introduced pep503 compliant indices to |
Going to close this since pep503 compliant indices should resolve Feel free to reopen if you feel like your issue has not been resolved |
hey @seemethere thanks for the update, I guess the problem is still there while installing CPU wheels, check this I've added the PyTorch site to the extra source, and getting the same error
|
@Kavan72 I also have the same issue. Before they find a proper way to fix this, I just add torchvision because torch will be added as a dependency. Note in the screenshot below that the CPU version of torch was correctly found where I also tried to add torchaudio. BTW, it worked with Poetry 1.2.0b3, but NOT with Poetry 1.1.14. Also I only tested it under linux.
|
To try used pip install --find-links https://download.pytorch.org/whl/torch_stable.html |
If you need it in a req.txt file you should put -f https://download.pytorch.org/whl/torch_stable.html in a seperate line:
(credit) |
🐛 Describe the bug
Hi!
The
+cpu
wheels from here requirestorch
instead oftorch+cpu
. This works fine when installing with pip:but fails with more advanced dependency managers like Poetry:
And when you look into this wheel, you can indeed see:
The proper value should be
torch==1.10.2+cpu
. I believe this matters, astorch
installed from PyPI is ~900 MB, whiletorch+cpu
installed from PyTorch index is only ~200 MB.Versions
The text was updated successfully, but these errors were encountered: