最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Unable to find candidates for torch - Stack Overflow

programmeradmin0浏览0评论

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./whl/cpu"
priority = "explicit"

Adding a screenshot for more context

Share Improve this question asked Jan 29 at 17:50 Olsi HoxhaOlsi Hoxha 4043 silver badges13 bronze badges 2
  • This may be useful github/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.

发布评论

评论列表(0)

  1. 暂无评论