-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Poetry torch cpu-only or gpu-only installation fails. #9565
Comments
duplicate pytorch/pytorch#110004, please report it to pytorch |
Also duplicate of #9524, please close |
Note the first issue you linked was closed by torch in February (i.e. well before you linked to it) - they don't see this as a torch issue it would appear. Possibly because the m-series mac's have integrated GPU's that support ML so there's no seperate CPU/GPU version of torch for macos unlike linux/windows. |
Sounds to me as though the torch folk are willing to engage on this, you won't know if you don't try |
So, this is a torch issue and not poetry? Torch with pip3 works fine though. |
poetry and pip are not doing the same thing. If pip is working for you - great! - use pip! this is a duplicate of lots of issues both open and closed, please close |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
I want to install torch cpu-only package using poetry.
With pip3 I am able to install it with cpu-only dependencies:
However using poetry I cannot. Here is more detail on my approach.
Poetry documentation has an example for torch gpu installation by defining explicit source:
And it fails. I tried a similiar approach for torch-cpu and it doesn't work neither with the same error:
There are some older threads on the same issue but none of them helped me out here.
Workarounds
No.
Poetry Installation Method
pipx
Operating System
MacOS Sonoma 14.5
Poetry Version
1.8.3
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
Poetry Runtime Logs
NOTE:
poetry add torch
with no explicit source. But this installs gpu dependencies which I don't want.The text was updated successfully, but these errors were encountered: