19

I recently upgraded to Python 3.11 and proceeded to install the libraries I typically use for 3.11. I went through my list one by one with pip.

When I tried to install PyTorch, I got an error which says:

ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch

None of the suggestions I could find on pytorch.com resolved the issue.

What went wrong, and what do I need to do in order to install PyTorch properly?

Karl Knechtel
  • 62,466
  • 11
  • 102
  • 153
El-One
  • 191
  • 1
  • 1
  • 4

3 Answers3

11

As of now, PyTorch only provides a Linux build with python 3.11 You can check all available wheels here.

https://download.pytorch.org/whl/torch/

Atif Ali
  • 384
  • 4
  • 17
5

I saw this issue on github: https://github.com/pytorch/pytorch/issues/86566 it looks like PyTorch doesn't support 3.11 yet. Apparently there's a nightly build that you can try to use, I haven't tested it though.

SadCactus
  • 71
  • 6
3

This works for me. Installs the nightly version of torch.

pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
picklepirate28
  • 143
  • 1
  • 1
  • 10