python - Unable to find candidates for torch - Stack Overflow

admin2025-04-18  9

So I am trying to install torch on one of my projects and my specs are as below

Python 3.12.3 / pip latest / Poetry (version 2.0.1)/ I am on Apple M3 Max

Here is my pyproject.toml

torch = { version = "^2.5.1+cpu", source = "pytorch-cpu" }
torchvision = { version = "^0.20.1+cpu", source = "pytorch-cpu" }
torchaudio = { version = "^2.5.1+cpu", source = "pytorch-cpu" }

[[tool.poetry.source]]
name = "pytorch-cpu"
url = ";
priority = "explicit"

Adding a screenshot for more context

So I am trying to install torch on one of my projects and my specs are as below

Python 3.12.3 / pip latest / Poetry (version 2.0.1)/ I am on Apple M3 Max

Here is my pyproject.toml

torch = { version = "^2.5.1+cpu", source = "pytorch-cpu" }
torchvision = { version = "^0.20.1+cpu", source = "pytorch-cpu" }
torchaudio = { version = "^2.5.1+cpu", source = "pytorch-cpu" }

[[tool.poetry.source]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
priority = "explicit"

Adding a screenshot for more context

Share asked Jan 29 at 17:50 Olsi HoxhaOlsi Hoxha 4043 silver badges13 bronze badges 2
  • This may be useful github.com/python-poetry/poetry/issues/6409 – Karl Commented Jan 29 at 18:11
  • @Karl I am doing the exact same thing as in the Option 2 of that and for some reason it is still failing. – Olsi Hoxha Commented Jan 29 at 18:18
Add a comment  | 

1 Answer 1

Reset to default 1

There is no version 2.5.1+cpu of torch available for macos.

转载请注明原文地址:http://www.anycun.com/QandA/1744948245a89887.html